summaryrefslogtreecommitdiff
path: root/drivers/net/ena
diff options
context:
space:
mode:
authorStewart Allen <allenste@amazon.com>2018-10-25 19:59:22 +0200
committerFerruh Yigit <ferruh.yigit@intel.com>2018-10-26 22:14:06 +0200
commite5df9f33db00eb9d322abaefff30da74fd0e625d (patch)
tree59d0eead2549dd746c9c68119bafb14204de13d5 /drivers/net/ena
parentdf238f84c0a21d642bb9517d0c75ba831eeceb46 (diff)
downloaddpdk-next-eventdev-e5df9f33db00eb9d322abaefff30da74fd0e625d.zip
dpdk-next-eventdev-e5df9f33db00eb9d322abaefff30da74fd0e625d.tar.gz
dpdk-next-eventdev-e5df9f33db00eb9d322abaefff30da74fd0e625d.tar.xz
net/ena: fix passing RSS hash to mbuf
The driver was passing to the mbuf Rx queue ID instead of hash received from the device. Now, the RSS hash from the Rx descriptor is being set. Fixes: 1173fca25af9 ("ena: add polling-mode driver") Cc: stable@dpdk.org Signed-off-by: Stewart Allen <allenste@amazon.com> Acked-by: Michal Krawczyk <mk@semihalf.com>
Diffstat (limited to 'drivers/net/ena')
-rw-r--r--drivers/net/ena/ena_ethdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ena/ena_ethdev.c b/drivers/net/ena/ena_ethdev.c
index 186ab0e..191153a 100644
--- a/drivers/net/ena/ena_ethdev.c
+++ b/drivers/net/ena/ena_ethdev.c
@@ -1910,7 +1910,7 @@ static uint16_t eth_ena_recv_pkts(void *rx_queue, struct rte_mbuf **rx_pkts,
/* fill mbuf attributes if any */
ena_rx_mbuf_prepare(mbuf_head, &ena_rx_ctx);
- mbuf_head->hash.rss = (uint32_t)rx_ring->id;
+ mbuf_head->hash.rss = ena_rx_ctx.hash;
/* pass to DPDK application head mbuf */
rx_pkts[recv_idx] = mbuf_head;