diff options
author | Wojciech Drewek <wojciech.drewek@intel.com> | 2022-07-18 14:18:12 +0200 |
---|---|---|
committer | Tony Nguyen <anthony.l.nguyen@intel.com> | 2022-07-26 10:49:27 -0700 |
commit | 6a21b0856daaf9b7f63225f5b449ddee170c6f0a (patch) | |
tree | e0b85959409762d2c780b2be9a30fbd84e080fb3 /include/net/flow_offload.h | |
parent | 5008750eff5d4af8a3aed4a7567c4cfb2b3cb156 (diff) | |
download | linux-stable-6a21b0856daaf9b7f63225f5b449ddee170c6f0a.tar.gz linux-stable-6a21b0856daaf9b7f63225f5b449ddee170c6f0a.tar.bz2 linux-stable-6a21b0856daaf9b7f63225f5b449ddee170c6f0a.zip |
flow_offload: Introduce flow_match_pppoe
Allow to offload PPPoE filters by adding flow_rule_match_pppoe.
Drivers can extract PPPoE specific fields from now on.
Signed-off-by: Wojciech Drewek <wojciech.drewek@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Diffstat (limited to 'include/net/flow_offload.h')
-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 a8d8512b7059..2a9a9e42e7fd 100644 --- a/include/net/flow_offload.h +++ b/include/net/flow_offload.h @@ -76,6 +76,10 @@ struct flow_match_ct { struct flow_dissector_key_ct *key, *mask; }; +struct flow_match_pppoe { + struct flow_dissector_key_pppoe *key, *mask; +}; + struct flow_rule; void flow_rule_match_meta(const struct flow_rule *rule, @@ -122,6 +126,8 @@ void flow_rule_match_enc_opts(const struct flow_rule *rule, struct flow_match_enc_opts *out); void flow_rule_match_ct(const struct flow_rule *rule, struct flow_match_ct *out); +void flow_rule_match_pppoe(const struct flow_rule *rule, + struct flow_match_pppoe *out); enum flow_action_id { FLOW_ACTION_ACCEPT = 0, |