net: core: add MPLS update core helper and use in OvS
authorJohn Hurley <john.hurley@netronome.com>
Sun, 7 Jul 2019 14:01:56 +0000 (15:01 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 9 Jul 2019 02:50:13 +0000 (19:50 -0700)
commitd27cf5c59a12f66425df29cd81f61aa73ef14ac1
tree200e7e737082e2e2a129789edc00cddaab20aea8
parented246cee09b9865145a2e1e34f63ec0e31dd83a5
net: core: add MPLS update core helper and use in OvS

Open vSwitch allows the updating of an existing MPLS header on a packet.
In preparation for supporting similar functionality in TC, move this to a
common skb helper function.

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