History

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

Open vSwitch provides code to push an MPLS header to a packet. In preparation for supporting this in TC, move the push code to an skb helper that can be reused.

John Hurley committed 7 years ago

Commit 8822e271 parent af144a93 files · +69 −27Browse files

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

Unified · Split

include/linux/skbuff.h+1−0
@@ -3447,6 +3447,7 @@ int skb_ensure_writable(struct sk_buff *skb, int write_len); · 3446 unmodified lines
3447int __skb_vlan_pop(struct sk_buff *skb, u16 *vlan_tci);3447int __skb_vlan_pop(struct sk_buff *skb, u16 *vlan_tci);
3448int skb_vlan_pop(struct sk_buff *skb);3448int skb_vlan_pop(struct sk_buff *skb);
3449int skb_vlan_push(struct sk_buff *skb, __be16 vlan_proto, u16 vlan_tci);3449int skb_vlan_push(struct sk_buff *skb, __be16 vlan_proto, u16 vlan_tci);
3450int skb_mpls_push(struct sk_buff *skb, __be32 mpls_lse, __be16 mpls_proto);
3450struct sk_buff *pskb_extract(struct sk_buff *skb, int off, int to_copy,3451struct sk_buff *pskb_extract(struct sk_buff *skb, int off, int to_copy,
3451 gfp_t gfp);3452 gfp_t gfp);
3452 3453

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