net_sched: act_vlan: Add priority option
authorHadar Hen Zion <hadarh@mellanox.com>
Wed, 17 Aug 2016 10:36:14 +0000 (13:36 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 Aug 2016 06:13:14 +0000 (23:13 -0700)
commit956af37102b515512331a03c35c958b2a1d8dd87
tree23f9f44fe2f7375a27ab1a0880d6e746ebae9649
parent9399ae9a6cb28ebac78216f715ace3b42f1c2132
net_sched: act_vlan: Add priority option

The current vlan push action supports only vid and protocol options.
Add priority option.

Example script that adds vlan push action with vid and
priority:

tc filter add dev veth0 protocol ip parent ffff: \
   flower \
    indev veth0 \
   action vlan push id 100 priority 5

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/net/tc_act/tc_vlan.h
include/uapi/linux/tc_act/tc_vlan.h
net/sched/act_vlan.c