diff options
Diffstat (limited to 'drivers/net/vmxnet3/vmxnet3_drv.c')
-rw-r--r-- | drivers/net/vmxnet3/vmxnet3_drv.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/vmxnet3/vmxnet3_drv.c b/drivers/net/vmxnet3/vmxnet3_drv.c index 9777dc62c536..b1c90f8ccd3d 100644 --- a/drivers/net/vmxnet3/vmxnet3_drv.c +++ b/drivers/net/vmxnet3/vmxnet3_drv.c | |||
@@ -1226,6 +1226,11 @@ vmxnet3_rq_rx_complete(struct vmxnet3_rx_queue *rq, | |||
1226 | pci_unmap_single(adapter->pdev, rbi->dma_addr, rbi->len, | 1226 | pci_unmap_single(adapter->pdev, rbi->dma_addr, rbi->len, |
1227 | PCI_DMA_FROMDEVICE); | 1227 | PCI_DMA_FROMDEVICE); |
1228 | 1228 | ||
1229 | #ifdef VMXNET3_RSS | ||
1230 | if (rcd->rssType != VMXNET3_RCD_RSS_TYPE_NONE && | ||
1231 | (adapter->netdev->features & NETIF_F_RXHASH)) | ||
1232 | ctx->skb->rxhash = le32_to_cpu(rcd->rssHash); | ||
1233 | #endif | ||
1229 | skb_put(ctx->skb, rcd->len); | 1234 | skb_put(ctx->skb, rcd->len); |
1230 | 1235 | ||
1231 | /* Immediate refill */ | 1236 | /* Immediate refill */ |
@@ -3022,6 +3027,8 @@ vmxnet3_probe_device(struct pci_dev *pdev, | |||
3022 | if (adapter->num_rx_queues > 1 && | 3027 | if (adapter->num_rx_queues > 1 && |
3023 | adapter->intr.type == VMXNET3_IT_MSIX) { | 3028 | adapter->intr.type == VMXNET3_IT_MSIX) { |
3024 | adapter->rss = true; | 3029 | adapter->rss = true; |
3030 | netdev->hw_features |= NETIF_F_RXHASH; | ||
3031 | netdev->features |= NETIF_F_RXHASH; | ||
3025 | dev_dbg(&pdev->dev, "RSS is enabled.\n"); | 3032 | dev_dbg(&pdev->dev, "RSS is enabled.\n"); |
3026 | } else { | 3033 | } else { |
3027 | adapter->rss = false; | 3034 | adapter->rss = false; |