]> git.baikalelectronics.ru Git - kernel.git/commit
openvswitch: add Ethernet push and pop actions
authorJiri Benc <jbenc@redhat.com>
Thu, 10 Nov 2016 15:28:23 +0000 (16:28 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 13 Nov 2016 05:51:02 +0000 (00:51 -0500)
commitd692b075c1d283b47448ea2cb4baf90603e92fa0
tree64557e9fd6e8514c3e6cf185d19977f2f3e13ee6
parent6d8fa5f7940027a2aa0ed81c92e4425493b3d9ca
openvswitch: add Ethernet push and pop actions

It's not allowed to push Ethernet header in front of another Ethernet
header.

It's not allowed to pop Ethernet header if there's a vlan tag. This
preserves the invariant that L3 packet never has a vlan tag.

Based on previous versions by Lorand Jakab and Simon Horman.

Signed-off-by: Lorand Jakab <lojakab@cisco.com>
Signed-off-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: Jiri Benc <jbenc@redhat.com>
Acked-by: Pravin B Shelar <pshelar@ovn.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/openvswitch.h
net/openvswitch/actions.c
net/openvswitch/flow_netlink.c