aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/pkt_cls.h
diff options
context:
space:
mode:
authorWojciech Drewek <wojciech.drewek@intel.com>2022-07-18 14:18:11 +0200
committerTony Nguyen <anthony.l.nguyen@intel.com>2022-07-26 10:20:29 -0700
commit5008750eff5d4af8a3aed4a7567c4cfb2b3cb156 (patch)
tree70722959e05e053f3cf0c86e68b005576e20690f /include/uapi/linux/pkt_cls.h
parentflow_dissector: Add PPPoE dissectors (diff)
downloadlinux-dev-5008750eff5d4af8a3aed4a7567c4cfb2b3cb156.tar.xz
linux-dev-5008750eff5d4af8a3aed4a7567c4cfb2b3cb156.zip
net/sched: flower: Add PPPoE filter
Add support for PPPoE specific fields for tc-flower. Those fields can be provided only when protocol was set to ETH_P_PPP_SES. Defines, dump, load and set are being done here. Overwrite basic.n_proto only in case of PPP_IP and PPP_IPV6, otherwise leave it as ETH_P_PPP_SES. Signed-off-by: Wojciech Drewek <wojciech.drewek@intel.com> Acked-by: Guillaume Nault <gnault@redhat.com> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Diffstat (limited to 'include/uapi/linux/pkt_cls.h')
-rw-r--r--include/uapi/linux/pkt_cls.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/uapi/linux/pkt_cls.h b/include/uapi/linux/pkt_cls.h
index 9a2ee1e39fad..c142c0f8ed8a 100644
--- a/include/uapi/linux/pkt_cls.h
+++ b/include/uapi/linux/pkt_cls.h
@@ -589,6 +589,9 @@ enum {
TCA_FLOWER_KEY_NUM_OF_VLANS, /* u8 */
+ TCA_FLOWER_KEY_PPPOE_SID, /* be16 */
+ TCA_FLOWER_KEY_PPP_PROTO, /* be16 */
+
__TCA_FLOWER_MAX,
};