[dpdk-stable] patch 'net/bnxt: fix IP checksum error indication' has been queued to LTS release 18.11.6

Kevin Traynor ktraynor at redhat.com
Wed Dec 11 22:26:01 CET 2019


Hi,

FYI, your patch has been queued to LTS release 18.11.6

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 12/17/19. 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/kevintraynor/dpdk-stable-queue

This queued commit can be viewed at:
https://github.com/kevintraynor/dpdk-stable-queue/commit/426e829013f34d4d43ba1d5475a2a38df0799a66

Thanks.

Kevin.

---
>From 426e829013f34d4d43ba1d5475a2a38df0799a66 Mon Sep 17 00:00:00 2001
From: Kalesh AP <kalesh-anakkur.purayil at broadcom.com>
Date: Fri, 15 Nov 2019 10:20:28 +0530
Subject: [PATCH] net/bnxt: fix IP checksum error indication

[ upstream commit 1bcec6ee08b4a2b7276da86323eb40da002ab421 ]

Update "mbuf->ol_flags" correctly for 'Checksum Unknown' errors
for both tunneled and non-tunneled IP packets.

Fixes: b875339622a3 ("net/bnxt: fix L4 checksum indication in non-vector Rx")

Signed-off-by: Kalesh AP <kalesh-anakkur.purayil at broadcom.com>
Reviewed-by: Somnath Kotur <somnath.kotur at broadcom.com>
---
 drivers/net/bnxt/bnxt_rxr.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/drivers/net/bnxt/bnxt_rxr.c b/drivers/net/bnxt/bnxt_rxr.c
index 8dd7cc09e..6e7ca1158 100644
--- a/drivers/net/bnxt/bnxt_rxr.c
+++ b/drivers/net/bnxt/bnxt_rxr.c
@@ -451,4 +451,6 @@ static int bnxt_rx_pkt(struct rte_mbuf **rx_pkt,
 		if (unlikely(RX_CMP_IP_CS_ERROR(rxcmp1)))
 			mbuf->ol_flags |= PKT_RX_IP_CKSUM_BAD;
+		else if (unlikely(RX_CMP_IP_CS_UNKNOWN(rxcmp1)))
+			mbuf->ol_flags |= PKT_RX_IP_CKSUM_UNKNOWN;
 		else
 			mbuf->ol_flags |= PKT_RX_IP_CKSUM_GOOD;
@@ -457,8 +459,8 @@ static int bnxt_rx_pkt(struct rte_mbuf **rx_pkt,
 			     RX_CMP_IP_CS_ERROR(rxcmp1)))
 			mbuf->ol_flags |= PKT_RX_IP_CKSUM_BAD;
+		else if (unlikely(RX_CMP_IP_CS_UNKNOWN(rxcmp1)))
+			mbuf->ol_flags |= PKT_RX_IP_CKSUM_UNKNOWN;
 		else
 			mbuf->ol_flags |= PKT_RX_IP_CKSUM_GOOD;
-	} else if (unlikely(RX_CMP_IP_CS_UNKNOWN(rxcmp1))) {
-		mbuf->ol_flags |= PKT_RX_IP_CKSUM_UNKNOWN;
 	}
 
-- 
2.21.0

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2019-12-11 21:24:13.490898956 +0000
+++ 0009-net-bnxt-fix-IP-checksum-error-indication.patch	2019-12-11 21:24:12.585652912 +0000
@@ -1 +1 @@
-From 1bcec6ee08b4a2b7276da86323eb40da002ab421 Mon Sep 17 00:00:00 2001
+From 426e829013f34d4d43ba1d5475a2a38df0799a66 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 1bcec6ee08b4a2b7276da86323eb40da002ab421 ]
+
@@ -10 +11,0 @@
-Cc: stable at dpdk.org
@@ -19 +20 @@
-index c35bc1afd..3b713c242 100644
+index 8dd7cc09e..6e7ca1158 100644
@@ -22 +23 @@
-@@ -516,4 +516,6 @@ static int bnxt_rx_pkt(struct rte_mbuf **rx_pkt,
+@@ -451,4 +451,6 @@ static int bnxt_rx_pkt(struct rte_mbuf **rx_pkt,
@@ -29 +30 @@
-@@ -522,8 +524,8 @@ static int bnxt_rx_pkt(struct rte_mbuf **rx_pkt,
+@@ -457,8 +459,8 @@ static int bnxt_rx_pkt(struct rte_mbuf **rx_pkt,



More information about the stable mailing list