From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michal Krawczyk Subject: [PATCH 2/3] net/ena: fix passing RSS hash to mbuf Date: Thu, 25 Oct 2018 19:59:22 +0200 Message-ID: <20181025175923.10858-3-mk@semihalf.com> References: <20181025175923.10858-1-mk@semihalf.com> Cc: dev@dpdk.org, stable@dpdk.org, Stewart Allen To: mk@semihalf.com, mw@semihalf.com, gtzalik@amazon.com, zorik@amazon.com, matua@amazon.com Return-path: Received: from mail-lf1-f67.google.com (mail-lf1-f67.google.com [209.85.167.67]) by dpdk.org (Postfix) with ESMTP id 663911B118 for ; Thu, 25 Oct 2018 19:59:44 +0200 (CEST) Received: by mail-lf1-f67.google.com with SMTP id h192so2554616lfg.3 for ; Thu, 25 Oct 2018 10:59:44 -0700 (PDT) In-Reply-To: <20181025175923.10858-1-mk@semihalf.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 Acked-by: Michal Krawczyk --- drivers/net/ena/ena_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ena/ena_ethdev.c b/drivers/net/ena/ena_ethdev.c index 186ab0e6b..191153a8f 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; -- 2.14.1