diff options
author | Jiri Pirko <jiri@mellanox.com> | 2019-06-19 09:41:04 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-06-19 10:09:22 -0400 |
commit | 9558a83aee62be7c3ce9eddd6484a5da16aad4cf (patch) | |
tree | 65c61d5c49d7b75ac4057d24ad0b70b9e464ac07 /include/net | |
parent | 8212ed777f40c7f801454c92ca8566db51aa73e8 (diff) |
net: flow_offload: implement support for meta key
Implement support for previously added flow dissector meta key.
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/flow_offload.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/net/flow_offload.h b/include/net/flow_offload.h index 36fdb85c974d..36127c1858a4 100644 --- a/include/net/flow_offload.h +++ b/include/net/flow_offload.h @@ -10,6 +10,10 @@ struct flow_match { void *key; }; +struct flow_match_meta { + struct flow_dissector_key_meta *key, *mask; +}; + struct flow_match_basic { struct flow_dissector_key_basic *key, *mask; }; @@ -64,6 +68,8 @@ struct flow_match_enc_opts { struct flow_rule; +void flow_rule_match_meta(const struct flow_rule *rule, + struct flow_match_meta *out); void flow_rule_match_basic(const struct flow_rule *rule, struct flow_match_basic *out); void flow_rule_match_control(const struct flow_rule *rule, |