Thread (32 messages) 32 messages, 7 authors, 2018-12-13

Re: [PATCH net-next,v5 01/12] flow_offload: add flow_rule and flow_match structures and use them

From: Jiri Pirko <jiri@resnulli.us>
Date: 2018-12-08 08:35:15

Thu, Dec 06, 2018 at 11:39:51PM CET, pablo@netfilter.org wrote:
This patch wraps the dissector key and mask - that flower uses to
represent the matching side - around the flow_match structure.

To avoid a follow up patch that would edit the same LoCs in the drivers,
this patch also wraps this new flow match structure around the flow rule
object. This new structure will also contain the flow actions in follow
up patches.

This introduces two new interfaces:

bool flow_rule_match_key(rule, dissector_id)

that returns true if a given matching key is set on, and:

flow_rule_match_XYZ(rule, &match);

To fetch the matching side XYZ into the match container structure, to
retrieve the key and the mask with one single call.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Acked-by: Jiri Pirko <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help