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/uapi | |
parent | 9399ae9a6cb28ebac78216f715ace3b42f1c2132 (diff) | |
download | lwn-956af37102b515512331a03c35c958b2a1d8dd87.tar.gz lwn-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/uapi')
-rw-r--r-- | include/uapi/linux/tc_act/tc_vlan.h | 1 |
1 files changed, 1 insertions, 0 deletions
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) |