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
10#define TCA_MPLS_ACT_PUSH 210#define TCA_MPLS_ACT_PUSH 2
11#define TCA_MPLS_ACT_MODIFY 311#define TCA_MPLS_ACT_MODIFY 3
12#define TCA_MPLS_ACT_DEC_TTL 412#define TCA_MPLS_ACT_DEC_TTL 4
13#define TCA_MPLS_ACT_MAC_PUSH 5
13 14
14struct tc_mpls {15struct tc_mpls {
15 tc_gen; /* generic TC action fields. */16 tc_gen; /* generic TC action fields. */