History

net: core: move pop MPLS functionality from OvS to core helper

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.

John Hurley committed 7 years ago

Commit ed246ce1 parent 8822e273 files · +45 −35Browse files

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

Unified · Split

include/linux/skbuff.h+1−0
@@ -3448,6 +3448,7 @@ int __skb_vlan_pop(struct sk_buff *skb, u16 *vlan_tci); · 3447 unmodified lines
34483448 int skb_vlan_pop(struct sk_buff *skb);
34493449 int skb_vlan_push(struct sk_buff *skb, __be16 vlan_proto, u16 vlan_tci);
34503450 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);
34513452 struct sk_buff *pskb_extract(struct sk_buff *skb, int off, int to_copy,
34523453 gfp_t gfp);
34533454

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t