net_sched: flower: Add vlan support
authorHadar Hen Zion <hadarh@mellanox.com>
Wed, 17 Aug 2016 10:36:13 +0000 (13:36 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 Aug 2016 06:13:14 +0000 (23:13 -0700)
commit9399ae9a6cb28ebac78216f715ace3b42f1c2132
tree685e04547540266ab8dbef8ab4fc7f3bde9c2590
parent339ba878cfb01b68de3d281ba33fd5e4c9f76546
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>
include/uapi/linux/pkt_cls.h
net/sched/cls_flower.c