mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-20 21:51:05 +00:00
vlan: introduce *vlan_hwaccel_push_inside helpers
Use them to push skb->vlan_tci into the payload and avoid code duplication. Signed-off-by: Jiri Pirko <jiri@resnulli.us> Acked-by: Pravin B Shelar <pshelar@nicira.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
62749e2cb3
commit
5968250c86
7 changed files with 51 additions and 44 deletions
|
@ -425,12 +425,10 @@ static int queue_userspace_packet(struct datapath *dp, struct sk_buff *skb,
|
|||
if (!nskb)
|
||||
return -ENOMEM;
|
||||
|
||||
nskb = vlan_insert_tag_set_proto(nskb, nskb->vlan_proto,
|
||||
vlan_tx_tag_get(nskb));
|
||||
nskb = __vlan_hwaccel_push_inside(nskb);
|
||||
if (!nskb)
|
||||
return -ENOMEM;
|
||||
|
||||
nskb->vlan_tci = 0;
|
||||
skb = nskb;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue