Skip to content

Commit

Permalink
be2net: fix error in rx completion processing.
Browse files Browse the repository at this point in the history
There are certain skews of the NIC which have multiple bits set in
adapter->cap.  Use & instead of == to process rx completions.

Signed-off-by: Ajit Khaparde <ajitk@serverengines.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Ajit Khaparde authored and David S. Miller committed Dec 12, 2009
1 parent 7227909 commit e1187b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/benet/be_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,7 @@ static void be_rx_compl_process(struct be_adapter *adapter,

/* vlanf could be wrongly set in some cards.
* ignore if vtm is not set */
if ((adapter->cap == 0x400) && !vtm)
if ((adapter->cap & 0x400) && !vtm)
vlanf = 0;

skb = netdev_alloc_skb_ip_align(adapter->netdev, BE_HDR_LEN);
Expand Down Expand Up @@ -816,7 +816,7 @@ static void be_rx_compl_process_gro(struct be_adapter *adapter,

/* vlanf could be wrongly set in some cards.
* ignore if vtm is not set */
if ((adapter->cap == 0x400) && !vtm)
if ((adapter->cap & 0x400) && !vtm)
vlanf = 0;

skb = napi_get_frags(&eq_obj->napi);
Expand Down

0 comments on commit e1187b3

Please sign in to comment.