aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/tc_act
diff options
context:
space:
mode:
authorGuillaume Nault <gnault@redhat.com>2020-10-03 00:44:31 +0200
committerDavid S. Miller <davem@davemloft.net>2020-10-03 17:28:45 -0700
commita45294af9e96a3e060b6272fa7cd2c4b196de335 (patch)
tree4c9ab23ca1d039b508ce4358df7dfed6561757de /include/uapi/linux/tc_act
parentnet/sched: act_vlan: Add {POP,PUSH}_ETH actions (diff)
downloadlinux-dev-a45294af9e96a3e060b6272fa7cd2c4b196de335.tar.xz
linux-dev-a45294af9e96a3e060b6272fa7cd2c4b196de335.zip
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>
Diffstat (limited to 'include/uapi/linux/tc_act')
-rw-r--r--include/uapi/linux/tc_act/tc_mpls.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/tc_act/tc_mpls.h b/include/uapi/linux/tc_act/tc_mpls.h
index 9360e95273c7..9e4e8f52a779 100644
--- a/include/uapi/linux/tc_act/tc_mpls.h
+++ b/include/uapi/linux/tc_act/tc_mpls.h
@@ -10,6 +10,7 @@
#define TCA_MPLS_ACT_PUSH 2
#define TCA_MPLS_ACT_MODIFY 3
#define TCA_MPLS_ACT_DEC_TTL 4
+#define TCA_MPLS_ACT_MAC_PUSH 5
struct tc_mpls {
tc_gen; /* generic TC action fields. */