[dpdk-stable] patch 'net/bnxt: fix null termination of Rx mbuf chain' has been queued to stable release 20.11.1

luca.boccassi at gmail.com luca.boccassi at gmail.com
Fri Feb 5 12:18:40 CET 2021


Hi,

FYI, your patch has been queued to stable release 20.11.1

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 02/07/21. 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. This will indicate if there was any rebasing
needed to apply to the stable branch. If there were code changes for rebasing
(ie: not only metadata diffs), please double check that the rebase was
correctly done.

Queued patches are on a temporary branch at:
https://github.com/bluca/dpdk-stable

This queued commit can be viewed at:
https://github.com/bluca/dpdk-stable/commit/1dd7ec97d80475ce5e3ce8dcb5e12e28711d7a3d

Thanks.

Luca Boccassi

---
>From 1dd7ec97d80475ce5e3ce8dcb5e12e28711d7a3d Mon Sep 17 00:00:00 2001
From: Lance Richardson <lance.richardson at broadcom.com>
Date: Fri, 22 Jan 2021 16:49:00 -0500
Subject: [PATCH] net/bnxt: fix null termination of Rx mbuf chain

[ upstream commit c711cc2a982d8849ab7ba2582b41c5a4ba5510ee ]

The last mbuf in a multi-segment packet needs to be
NULL-terminated.

Fixes: 0958d8b6435d ("net/bnxt: support LRO")

Signed-off-by: Lance Richardson <lance.richardson at broadcom.com>
Reviewed-by: Somnath Kotur <somnath.kotur at broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde at broadcom.com>
---
 drivers/net/bnxt/bnxt_rxr.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/bnxt/bnxt_rxr.c b/drivers/net/bnxt/bnxt_rxr.c
index 6d6041f267..57cfc9444c 100644
--- a/drivers/net/bnxt/bnxt_rxr.c
+++ b/drivers/net/bnxt/bnxt_rxr.c
@@ -267,6 +267,7 @@ static int bnxt_rx_pages(struct bnxt_rx_queue *rxq,
 		 */
 		rte_bitmap_set(rxr->ag_bitmap, ag_cons);
 	}
+	last->next = NULL;
 	bnxt_prod_ag_mbuf(rxq);
 	return 0;
 }
-- 
2.29.2

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2021-02-05 11:18:39.494830014 +0000
+++ 0234-net-bnxt-fix-null-termination-of-Rx-mbuf-chain.patch	2021-02-05 11:18:29.218698956 +0000
@@ -1 +1 @@
-From c711cc2a982d8849ab7ba2582b41c5a4ba5510ee Mon Sep 17 00:00:00 2001
+From 1dd7ec97d80475ce5e3ce8dcb5e12e28711d7a3d Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit c711cc2a982d8849ab7ba2582b41c5a4ba5510ee ]
+
@@ -10 +11,0 @@
-Cc: stable at dpdk.org
@@ -20 +21 @@
-index 969cae19fc..c34a8905e7 100644
+index 6d6041f267..57cfc9444c 100644
@@ -23 +24 @@
-@@ -325,6 +325,7 @@ static int bnxt_rx_pages(struct bnxt_rx_queue *rxq,
+@@ -267,6 +267,7 @@ static int bnxt_rx_pages(struct bnxt_rx_queue *rxq,


More information about the stable mailing list