net/sched: act_vlan: Introduce TCA_VLAN_ACT_MODIFY vlan action
authorShmulik Ladkani <shmulik.ladkani@gmail.com>
Mon, 19 Sep 2016 16:11:10 +0000 (19:11 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Sep 2016 05:34:20 +0000 (01:34 -0400)
commit45a497f2d149a4a8061c61518a79d59f1f3034b2
tree342f1160ba3a5491dadba70104586cf9c69a083c
parentbfca4c520f7ea78138ddccea2de18dc062b0fefd
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>
include/uapi/linux/tc_act/tc_vlan.h
net/sched/act_vlan.c