diff options
author | Shmulik Ladkani <shmulik.ladkani@gmail.com> | 2016-09-19 19:11:10 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-09-22 08:34:20 +0300 |
commit | 45a497f2d149a4a8061c61518a79d59f1f3034b2 (patch) | |
tree | 342f1160ba3a5491dadba70104586cf9c69a083c /include/uapi | |
parent | bfca4c520f7ea78138ddccea2de18dc062b0fefd (diff) | |
download | linux-45a497f2d149a4a8061c61518a79d59f1f3034b2.tar.xz |
net/sched: act_vlan: Introduce TCA_VLAN_ACT_MODIFY vlan action
TCA_VLAN_ACT_MODIFY allows one to change an existing tag.
It accepts same attributes as TCA_VLAN_ACT_PUSH (protocol, id,
priority).
If packet is vlan tagged, then the tag gets overwritten according to
user specified attributes.
For example, this allows user to replace a tag's vid while preserving
its priority bits (as opposed to "action vlan pop pipe action vlan push").
Signed-off-by: Shmulik Ladkani <shmulik.ladkani@gmail.com>
Acked-by: Jamal Hadi Salim <jhs@mojatatu.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 be72b6e3843b..bddb272b843f 100644 --- a/include/uapi/linux/tc_act/tc_vlan.h +++ b/include/uapi/linux/tc_act/tc_vlan.h @@ -16,6 +16,7 @@ #define TCA_VLAN_ACT_POP 1 #define TCA_VLAN_ACT_PUSH 2 +#define TCA_VLAN_ACT_MODIFY 3 struct tc_vlan { tc_gen; |