diff options
| author | Tom Herbert <therbert@google.com> | 2013-12-18 02:22:57 -0500 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2013-12-18 15:00:51 -0500 |
| commit | cf1bfd6a9eff11a8c5a1635390d6dbea34d2ab9f (patch) | |
| tree | 3ca4758ecfd6f25d3a1b2daa3bc197c753fbe8ae | |
| parent | ac727c49d772c059d6c544680d08c1832b93b67a (diff) | |
net: bnx2 calls skb_set_hash
Drivers should call skb_set_hash to set the hash and its type
in an skbuff.
Signed-off-by: Tom Herbert <therbert@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
| -rw-r--r-- | drivers/net/ethernet/broadcom/bnx2.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/broadcom/bnx2.c b/drivers/net/ethernet/broadcom/bnx2.c index d9980ad00b4b..0ced3587c888 100644 --- a/drivers/net/ethernet/broadcom/bnx2.c +++ b/drivers/net/ethernet/broadcom/bnx2.c | |||
| @@ -3234,7 +3234,8 @@ bnx2_rx_int(struct bnx2 *bp, struct bnx2_napi *bnapi, int budget) | |||
| 3234 | if ((bp->dev->features & NETIF_F_RXHASH) && | 3234 | if ((bp->dev->features & NETIF_F_RXHASH) && |
| 3235 | ((status & L2_FHDR_STATUS_USE_RXHASH) == | 3235 | ((status & L2_FHDR_STATUS_USE_RXHASH) == |
| 3236 | L2_FHDR_STATUS_USE_RXHASH)) | 3236 | L2_FHDR_STATUS_USE_RXHASH)) |
| 3237 | skb->rxhash = rx_hdr->l2_fhdr_hash; | 3237 | skb_set_hash(skb, rx_hdr->l2_fhdr_hash, |
| 3238 | PKT_HASH_TYPE_L3); | ||
| 3238 | 3239 | ||
| 3239 | skb_record_rx_queue(skb, bnapi - &bp->bnx2_napi[0]); | 3240 | skb_record_rx_queue(skb, bnapi - &bp->bnx2_napi[0]); |
| 3240 | napi_gro_receive(&bnapi->napi, skb); | 3241 | napi_gro_receive(&bnapi->napi, skb); |
