diff options
author | Hadar Hen Zion <hadarh@mellanox.com> | 2016-08-17 13:36:14 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-08-18 23:13:14 -0700 |
commit | 956af37102b515512331a03c35c958b2a1d8dd87 (patch) | |
tree | 23f9f44fe2f7375a27ab1a0880d6e746ebae9649 /include | |
parent | 9399ae9a6cb28ebac78216f715ace3b42f1c2132 (diff) | |
download | linux-956af37102b515512331a03c35c958b2a1d8dd87.tar.gz linux-956af37102b515512331a03c35c958b2a1d8dd87.tar.bz2 linux-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')
-rw-r--r-- | include/net/tc_act/tc_vlan.h | 1 | ||||
-rw-r--r-- | include/uapi/linux/tc_act/tc_vlan.h | 1 |
2 files changed, 2 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) diff --git a/include/uapi/linux/tc_act/tc_vlan.h b/include/uapi/linux/tc_act/tc_vlan.h index 31151ff6264f..be72b6e3843b 100644 --- a/include/uapi/linux/tc_act/tc_vlan.h +++ b/include/uapi/linux/tc_act/tc_vlan.h @@ -29,6 +29,7 @@ enum { TCA_VLAN_PUSH_VLAN_ID, TCA_VLAN_PUSH_VLAN_PROTOCOL, TCA_VLAN_PAD, + TCA_VLAN_PUSH_VLAN_PRIORITY, __TCA_VLAN_MAX, }; #define TCA_VLAN_MAX (__TCA_VLAN_MAX - 1) |