net: core: move push MPLS functionality from OvS to core helper
authorJohn Hurley <john.hurley@netronome.com>
Sun, 7 Jul 2019 14:01:54 +0000 (15:01 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 9 Jul 2019 02:50:13 +0000 (19:50 -0700)
commit8822e270d697010e6a4fd42a319dbefc33db91e1
treebb41f9cc2cc8071c04fc7f053404ca75b13e86c2
parentaf144a983402f7fd324ce556d9f9011a8b3e01fe
net: core: move push MPLS functionality from OvS to core helper

Open vSwitch provides code to push an MPLS header to a packet. In
preparation for supporting this in TC, move the push code to an skb helper
that can be reused.

Signed-off-by: John Hurley <john.hurley@netronome.com>
Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Simon Horman <simon.horman@netronome.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Acked-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/skbuff.h
net/core/skbuff.c
net/openvswitch/actions.c