Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 376091
b: refs/heads/master
c: efee8e8
h: refs/heads/master
i:
  376089: 5898246
  376087: 89f267d
v: v3
  • Loading branch information
Sarveshwar Bandi authored and David S. Miller committed May 14, 2013
1 parent 3c9e170 commit 08f22e5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 950c54df1e503ece4e2987b0cf6e2e4e22817c0c
refs/heads/master: efee8e8712921279c3a5a687d5b65ee7fde7db89
18 changes: 5 additions & 13 deletions trunk/drivers/net/ethernet/emulex/benet/be_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -780,26 +780,18 @@ static struct sk_buff *be_insert_vlan_in_pkt(struct be_adapter *adapter,
if (unlikely(!skb))
return skb;

if (vlan_tx_tag_present(skb)) {
if (vlan_tx_tag_present(skb))
vlan_tag = be_get_tx_vlan_tag(adapter, skb);
skb = __vlan_put_tag(skb, htons(ETH_P_8021Q), vlan_tag);
if (skb)
skb->vlan_tci = 0;
}

if (qnq_async_evt_rcvd(adapter) && adapter->pvid) {
if (!vlan_tag)
vlan_tag = adapter->pvid;
if (skip_hw_vlan)
*skip_hw_vlan = true;
}
else if (qnq_async_evt_rcvd(adapter) && adapter->pvid)
vlan_tag = adapter->pvid;

if (vlan_tag) {
skb = __vlan_put_tag(skb, htons(ETH_P_8021Q), vlan_tag);
if (unlikely(!skb))
return skb;

skb->vlan_tci = 0;
if (skip_hw_vlan)
*skip_hw_vlan = true;
}

/* Insert the outer VLAN, if any */
Expand Down

0 comments on commit 08f22e5

Please sign in to comment.