[dpdk-stable] patch 'rib: fix IPv6 depth mask' has been queued to stable release 20.11.4

Xueming Li xuemingl at nvidia.com
Wed Nov 10 07:31:19 CET 2021


Hi,

FYI, your patch has been queued to stable release 20.11.4

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

This queued commit can be viewed at:
https://github.com/steevenlee/dpdk/commit/8d7d90985b8ea7f56eb15ee6454c2d409b9a6add

Thanks.

Xueming Li <xuemingl at nvidia.com>

---
>From 8d7d90985b8ea7f56eb15ee6454c2d409b9a6add Mon Sep 17 00:00:00 2001
From: Vladimir Medvedkin <vladimir.medvedkin at intel.com>
Date: Mon, 6 Sep 2021 16:54:32 +0100
Subject: [PATCH] rib: fix IPv6 depth mask
Cc: Xueming Li <xuemingl at nvidia.com>

[ upstream commit 97e2ae4c58f9c8741ae920415e4c3952373ecb51 ]

Fixes: 03b8372a9a73 ("rib: fix max depth IPv6 lookup")

Signed-off-by: Vladimir Medvedkin <vladimir.medvedkin at intel.com>
---
 lib/librte_rib/rte_rib6.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/librte_rib/rte_rib6.c b/lib/librte_rib/rte_rib6.c
index 96424e9c9f..b00c7fbf5a 100644
--- a/lib/librte_rib/rte_rib6.c
+++ b/lib/librte_rib/rte_rib6.c
@@ -88,7 +88,7 @@ get_dir(const uint8_t ip[RTE_RIB6_IPV6_ADDR_SIZE], uint8_t depth)
 	 * is incremented in blocks of 8 (1 byte). This means the last
 	 * 3 bits are irrelevant to what the index of ip should be.
 	 */
-	index = (depth & (UINT8_MAX - 1)) / CHAR_BIT;
+	index = (depth & INT8_MAX) / CHAR_BIT;
 
 	/*
 	 * msk is the bitmask used to extract the bit used to decide the
-- 
2.33.0

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2021-11-10 14:17:10.561067618 +0800
+++ 0195-rib-fix-IPv6-depth-mask.patch	2021-11-10 14:17:02.004078333 +0800
@@ -1 +1 @@
-From 97e2ae4c58f9c8741ae920415e4c3952373ecb51 Mon Sep 17 00:00:00 2001
+From 8d7d90985b8ea7f56eb15ee6454c2d409b9a6add Mon Sep 17 00:00:00 2001
@@ -4,0 +5,3 @@
+Cc: Xueming Li <xuemingl at nvidia.com>
+
+[ upstream commit 97e2ae4c58f9c8741ae920415e4c3952373ecb51 ]
@@ -7 +9,0 @@
-Cc: stable at dpdk.org
@@ -11 +13 @@
- lib/rib/rte_rib6.c | 2 +-
+ lib/librte_rib/rte_rib6.c | 2 +-
@@ -14 +16 @@
-diff --git a/lib/rib/rte_rib6.c b/lib/rib/rte_rib6.c
+diff --git a/lib/librte_rib/rte_rib6.c b/lib/librte_rib/rte_rib6.c
@@ -16,2 +18,2 @@
---- a/lib/rib/rte_rib6.c
-+++ b/lib/rib/rte_rib6.c
+--- a/lib/librte_rib/rte_rib6.c
++++ b/lib/librte_rib/rte_rib6.c


More information about the stable mailing list