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>
This commit is contained in:
Tom Herbert 2013-12-17 23:32:08 -08:00 committed by David S. Miller
parent 3b21567fb4
commit 0b68070347

View File

@ -1235,7 +1235,8 @@ vmxnet3_rq_rx_complete(struct vmxnet3_rx_queue *rq,
#ifdef VMXNET3_RSS #ifdef VMXNET3_RSS
if (rcd->rssType != VMXNET3_RCD_RSS_TYPE_NONE && if (rcd->rssType != VMXNET3_RCD_RSS_TYPE_NONE &&
(adapter->netdev->features & NETIF_F_RXHASH)) (adapter->netdev->features & NETIF_F_RXHASH))
ctx->skb->rxhash = le32_to_cpu(rcd->rssHash); skb_set_hash(skb, le32_to_cpu(rcd->rssHash),
PKT_HASH_TYPE_L3);
#endif #endif
skb_put(ctx->skb, rcd->len); skb_put(ctx->skb, rcd->len);