diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2019-02-02 12:50:43 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-02-06 10:38:25 -0800 |
commit | 8f2566225ae2d62d532bb1810ed74fa4bbc5bbdb (patch) | |
tree | 4a3319b905ef761d89f106e64982ddaac2765273 /crypto/algif_rng.c | |
parent | d9b5a67522d5d28003a7a2953b2df15c396ffd09 (diff) | |
download | linux-8f2566225ae2d62d532bb1810ed74fa4bbc5bbdb.tar.bz2 |
flow_offload: add flow_rule and flow_match structures and use them
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 <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'crypto/algif_rng.c')
0 files changed, 0 insertions, 0 deletions