aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/bnx2.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/bnx2.c')
-rw-r--r--drivers/net/bnx2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/bnx2.c b/drivers/net/bnx2.c
index 94d1857d2c5d..3bb69d538ef0 100644
--- a/drivers/net/bnx2.c
+++ b/drivers/net/bnx2.c
@@ -2757,7 +2757,7 @@ bnx2_rx_int(struct bnx2 *bp, struct bnx2_napi *bnapi, int budget)
2757 } 2757 }
2758 2758
2759#ifdef BCM_VLAN 2759#ifdef BCM_VLAN
2760 if ((status & L2_FHDR_STATUS_L2_VLAN_TAG) && (bp->vlgrp != 0)) { 2760 if ((status & L2_FHDR_STATUS_L2_VLAN_TAG) && bp->vlgrp) {
2761 vlan_hwaccel_receive_skb(skb, bp->vlgrp, 2761 vlan_hwaccel_receive_skb(skb, bp->vlgrp,
2762 rx_hdr->l2_fhdr_vlan_tag); 2762 rx_hdr->l2_fhdr_vlan_tag);
2763 } 2763 }
@@ -5660,7 +5660,7 @@ bnx2_start_xmit(struct sk_buff *skb, struct net_device *dev)
5660 vlan_tag_flags |= TX_BD_FLAGS_TCP_UDP_CKSUM; 5660 vlan_tag_flags |= TX_BD_FLAGS_TCP_UDP_CKSUM;
5661 } 5661 }
5662 5662
5663 if (bp->vlgrp != 0 && vlan_tx_tag_present(skb)) { 5663 if (bp->vlgrp && vlan_tx_tag_present(skb)) {
5664 vlan_tag_flags |= 5664 vlan_tag_flags |=
5665 (TX_BD_FLAGS_VLAN_TAG | (vlan_tx_tag_get(skb) << 16)); 5665 (TX_BD_FLAGS_VLAN_TAG | (vlan_tx_tag_get(skb) << 16));
5666 } 5666 }