From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-f65.google.com (mail-wr1-f65.google.com [209.85.221.65]) by dpdk.org (Postfix) with ESMTP id 7810E2BB1 for ; Mon, 29 Oct 2018 13:54:13 +0100 (CET) Received: by mail-wr1-f65.google.com with SMTP id t10-v6so8541547wrn.10 for ; Mon, 29 Oct 2018 05:54:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=lrEF2Zq5vTW517qWNb9Hf0v/TTrdX5kFg42CNHGf1Hk=; b=bO+EQcI4HDJLXlInS39+mu3Ou+9LQu8T747N+WzHkMM61VOeYap5fRCY9QOlC3fup7 V4UCvuTLu2PtC2EdDC+00dbkolyYKOfIQ45ExIO8x8DbvSzi6JHIHr0sZmN6gh3aHV7S 01NsNgr8TbLJ34CfFbDzf6AE/6WGnrvLQASZ160BvtdzcHPPeH8mCvmwgOKOd8SYMSjh OPW097QihXj4AsWNgNcPKjceOVdc1rvQgdHX8FvfNPLCKncdg5ni0KtyRL/iQxpXaJMU QHVUY6r/leYbY/PnwE+ngzXXfwzCCO5SAye9H2BoMDt9lbOw5b2aFNbBr7WMj1JdfRvP +zGQ== X-Gm-Message-State: AGRZ1gIUQ/2ohwv/csVJXPpqeamaF9v6YocT9x7+FfJaDbJcG+rRn3bV xgf83uGWELJZo93/ZnzWJg0= X-Google-Smtp-Source: AJdET5foYi9yBeADGbBVQIk6TDw2QZ2ZLcWfaVNV+i+LxFh9gkP9tqBzu5i/9KuJwptbRgk0OTcceg== X-Received: by 2002:adf:8b0a:: with SMTP id n10-v6mr1812506wra.282.1540817653161; Mon, 29 Oct 2018 05:54:13 -0700 (PDT) Received: from localhost ([2a01:4b00:f419:6f00:8361:8946:ba2b:d556]) by smtp.gmail.com with ESMTPSA id c9-v6sm19055895wrh.50.2018.10.29.05.54.11 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 29 Oct 2018 05:54:12 -0700 (PDT) From: Luca Boccassi To: Stewart Allen Cc: Michal Krawczyk , dpdk stable Date: Mon, 29 Oct 2018 12:53:25 +0000 Message-Id: <20181029125329.17729-16-bluca@debian.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181029125329.17729-1-bluca@debian.org> References: <20181015115144.27626-1-bluca@debian.org> <20181029125329.17729-1-bluca@debian.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] patch 'net/ena: fix passing RSS hash to mbuf' has been queued to LTS release 16.11.9 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Oct 2018 12:54:13 -0000 Hi, FYI, your patch has been queued to LTS release 16.11.9 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 10/31/18. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. If the code is different (ie: not only metadata diffs), due for example to a change in context or macro names, please double check it. Thanks. Luca Boccassi --- >>From 39056a59cce5a62b22beac75a3754431381da06f Mon Sep 17 00:00:00 2001 From: Stewart Allen Date: Thu, 25 Oct 2018 19:59:22 +0200 Subject: [PATCH] net/ena: fix passing RSS hash to mbuf [ upstream commit e5df9f33db00eb9d322abaefff30da74fd0e625d ] 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") 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 1511c6a0d..7de63e6c3 100644 --- a/drivers/net/ena/ena_ethdev.c +++ b/drivers/net/ena/ena_ethdev.c @@ -1553,7 +1553,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.19.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2018-10-29 12:48:14.790123432 +0000 +++ 0016-net-ena-fix-passing-RSS-hash-to-mbuf.patch 2018-10-29 12:48:14.474417981 +0000 @@ -1,13 +1,14 @@ -From e5df9f33db00eb9d322abaefff30da74fd0e625d Mon Sep 17 00:00:00 2001 +From 39056a59cce5a62b22beac75a3754431381da06f Mon Sep 17 00:00:00 2001 From: Stewart Allen Date: Thu, 25 Oct 2018 19:59:22 +0200 Subject: [PATCH] net/ena: fix passing RSS hash to mbuf +[ upstream commit e5df9f33db00eb9d322abaefff30da74fd0e625d ] + 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 @@ -16,10 +17,10 @@ 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 +index 1511c6a0d..7de63e6c3 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, +@@ -1553,7 +1553,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);