diff options
author | Hadar Hen Zion <hadarh@mellanox.com> | 2016-08-17 13:36:13 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-08-19 09:13:14 +0300 |
commit | 9399ae9a6cb28ebac78216f715ace3b42f1c2132 (patch) | |
tree | 685e04547540266ab8dbef8ab4fc7f3bde9c2590 /include/uapi/linux/pkt_cls.h | |
parent | 339ba878cfb01b68de3d281ba33fd5e4c9f76546 (diff) | |
download | linux-9399ae9a6cb28ebac78216f715ace3b42f1c2132.tar.xz |
net_sched: flower: Add vlan support
Enhance flower to support 802.1Q vlan protocol classification.
Currently, the supported fields are vlan_id and vlan_priority.
Example:
# add a flower filter with vlan id and priority classification
tc filter add dev ens4f0 protocol 802.1Q parent ffff: \
flower \
indev ens4f0 \
vlan_ethtype ipv4 \
vlan_id 100 \
vlan_prio 3 \
action vlan pop
Signed-off-by: Hadar Hen Zion <hadarh@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi/linux/pkt_cls.h')
-rw-r--r-- | include/uapi/linux/pkt_cls.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/uapi/linux/pkt_cls.h b/include/uapi/linux/pkt_cls.h index d1c1ccaba787..51b5b247fb5a 100644 --- a/include/uapi/linux/pkt_cls.h +++ b/include/uapi/linux/pkt_cls.h @@ -428,6 +428,9 @@ enum { TCA_FLOWER_KEY_UDP_DST, /* be16 */ TCA_FLOWER_FLAGS, + TCA_FLOWER_KEY_VLAN_ID, + TCA_FLOWER_KEY_VLAN_PRIO, + TCA_FLOWER_KEY_VLAN_ETH_TYPE, __TCA_FLOWER_MAX, }; |