]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5c43ae42a6eb8f1b67d3dd3beffc4c9160571c60
tree23f9f44fe2f7375a27ab1a0880d6e746ebae9649
parentd0cce25123b9e022c9007a41dd6312a8522ab6fb
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