Open vSwitch provides code to pop an MPLS header to a packet. In preparation for supporting this in TC, move the pop code to an skb helper that can be reused. Remove the, now unused, update_ethertype static function from OvS.
Showing the changes to include/linux (1 of 3 files). Show all
Unified · Split
| @@ -3448,6 +3448,7 @@ int __skb_vlan_pop(struct sk_buff *skb, u16 *vlan_tci); · 3447 unmodified lines | ||
| 3448 | 3448 | int skb_vlan_pop(struct sk_buff *skb); |
| 3449 | 3449 | int skb_vlan_push(struct sk_buff *skb, __be16 vlan_proto, u16 vlan_tci); |
| 3450 | 3450 | int skb_mpls_push(struct sk_buff *skb, __be32 mpls_lse, __be16 mpls_proto); |
| 3451 | +int skb_mpls_pop(struct sk_buff *skb, __be16 next_proto); | |
| 3451 | 3452 | struct sk_buff *pskb_extract(struct sk_buff *skb, int off, int to_copy, |
| 3452 | 3453 | gfp_t gfp); |
| 3453 | 3454 | |