diff options
author | Tom Herbert <therbert@google.com> | 2013-12-18 02:32:08 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-12-18 15:00:53 -0500 |
commit | 0b6807034791160d5e584138943d2daea765436d (patch) | |
tree | a2d3cf16d1fc5e5de913d146333c03a5ec9bb0d8 | |
parent | 3b21567fb4ff8d6b760443f634d0b3ffe63ce748 (diff) |
net: vmxnet3 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/vmxnet3/vmxnet3_drv.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/vmxnet3/vmxnet3_drv.c b/drivers/net/vmxnet3/vmxnet3_drv.c index a300a18c550a..c0eab72cc79f 100644 --- a/drivers/net/vmxnet3/vmxnet3_drv.c +++ b/drivers/net/vmxnet3/vmxnet3_drv.c | |||
@@ -1235,7 +1235,8 @@ vmxnet3_rq_rx_complete(struct vmxnet3_rx_queue *rq, | |||
1235 | #ifdef VMXNET3_RSS | 1235 | #ifdef VMXNET3_RSS |
1236 | if (rcd->rssType != VMXNET3_RCD_RSS_TYPE_NONE && | 1236 | if (rcd->rssType != VMXNET3_RCD_RSS_TYPE_NONE && |
1237 | (adapter->netdev->features & NETIF_F_RXHASH)) | 1237 | (adapter->netdev->features & NETIF_F_RXHASH)) |
1238 | ctx->skb->rxhash = le32_to_cpu(rcd->rssHash); | 1238 | skb_set_hash(skb, le32_to_cpu(rcd->rssHash), |
1239 | PKT_HASH_TYPE_L3); | ||
1239 | #endif | 1240 | #endif |
1240 | skb_put(ctx->skb, rcd->len); | 1241 | skb_put(ctx->skb, rcd->len); |
1241 | 1242 | ||