History

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.

Guillaume Nault committed 6 years ago

Commit a45294a1 parent 19fbcb32 files · +19 −0Browse files

Showing the changes to include/uapi/linux (1 of 2 files). Show all

Unified · Split

include/uapi/linux/tc_act/tc_mpls.h+1−0
@@ -10,6 +10,7 @@ · 9 unmodified lines
1010 #define TCA_MPLS_ACT_PUSH 2
1111 #define TCA_MPLS_ACT_MODIFY 3
1212 #define TCA_MPLS_ACT_DEC_TTL 4
13+#define TCA_MPLS_ACT_MAC_PUSH 5
1314
1415 struct tc_mpls {
1516 tc_gen; /* generic TC action fields. */