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.
Showing the changes to include/uapi/linux (1 of 2 files). Show all
Unified · Split
| @@ -10,6 +10,7 @@ · 9 unmodified lines | |||
| 10 | #define TCA_MPLS_ACT_PUSH 2 | 10 | #define TCA_MPLS_ACT_PUSH 2 |
| 11 | #define TCA_MPLS_ACT_MODIFY 3 | 11 | #define TCA_MPLS_ACT_MODIFY 3 |
| 12 | #define TCA_MPLS_ACT_DEC_TTL 4 | 12 | #define TCA_MPLS_ACT_DEC_TTL 4 |
| 13 | #define TCA_MPLS_ACT_MAC_PUSH 5 | ||
| 13 | 14 | ||
| 14 | struct tc_mpls { | 15 | struct tc_mpls { |
| 15 | tc_gen; /* generic TC action fields. */ | 16 | tc_gen; /* generic TC action fields. */ |