]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net/sched: act_mpls: Add action to push MPLS LSE before Ethernet header
authorGuillaume Nault <gnault@redhat.com>
Fri, 2 Oct 2020 22:44:31 +0000 (00:44 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 4 Oct 2020 00:28:45 +0000 (17:28 -0700)
commita45294af9e96a3e060b6272fa7cd2c4b196de335
tree4c9ab23ca1d039b508ce4358df7dfed6561757de
parent19fbcb36a39eefbe8912a13ccc02e937b1c418d6
net/sched: act_mpls: Add action to push MPLS LSE before Ethernet header

Define the MAC_PUSH action which pushes an MPLS LSE before the mac
header (instead of between the mac and the network headers as the
plain PUSH action does).

The only special case is when the skb has an offloaded VLAN. In that
case, it has to be inlined before pushing the MPLS header.

Signed-off-by: Guillaume Nault <gnault@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/tc_act/tc_mpls.h
net/sched/act_mpls.c