aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/tc_act
diff options
context:
space:
mode:
authorHadar Hen Zion <hadarh@mellanox.com>2016-08-17 13:36:14 +0300
committerDavid S. Miller <davem@davemloft.net>2016-08-18 23:13:14 -0700
commit956af37102b515512331a03c35c958b2a1d8dd87 (patch)
tree23f9f44fe2f7375a27ab1a0880d6e746ebae9649 /include/net/tc_act
parentnet_sched: flower: Add vlan support (diff)
downloadlinux-dev-956af37102b515512331a03c35c958b2a1d8dd87.tar.xz
linux-dev-956af37102b515512331a03c35c958b2a1d8dd87.zip
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>
Diffstat (limited to 'include/net/tc_act')
-rw-r--r--include/net/tc_act/tc_vlan.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/tc_act/tc_vlan.h b/include/net/tc_act/tc_vlan.h
index e29f52e8bdf1..6b835889ea30 100644
--- a/include/net/tc_act/tc_vlan.h
+++ b/include/net/tc_act/tc_vlan.h
@@ -20,6 +20,7 @@ struct tcf_vlan {
int tcfv_action;
u16 tcfv_push_vid;
__be16 tcfv_push_proto;
+ u8 tcfv_push_prio;
};
#define to_vlan(a) ((struct tcf_vlan *)a)