Skip to content

Commit

Permalink
bnx2x: Fix check to get RX hash
Browse files Browse the repository at this point in the history
Flag used in check to get rxhash out of the descriptor is incorrect one.
Fix to use the proper features flag.

Signed-off-by: Tom Herbert <therbert@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Tom Herbert authored and David S. Miller committed May 6, 2010
1 parent 2861a18 commit 4447957
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/bnx2x_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1726,7 +1726,7 @@ static int bnx2x_rx_int(struct bnx2x_fastpath *fp, int budget)

skb->protocol = eth_type_trans(skb, bp->dev);

if ((bp->dev->features & ETH_FLAG_RXHASH) &&
if ((bp->dev->features & NETIF_F_RXHASH) &&
(cqe_fp_status_flags &
ETH_FAST_PATH_RX_CQE_RSS_HASH_FLG))
skb->rxhash = le32_to_cpu(
Expand Down

0 comments on commit 4447957

Please sign in to comment.