Skip to contentSkip to conversation

test/fib: fix RCU tests

PATCH New David Marchand 1 participant 1 message Oct 15, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 test/fib: fix RCU tests

The flags field must be initialized to 0 following commit e194f3cd5685 ("fib: lookup IPv4 address in network order").

This was missed when merging the FIB RCU reclaim.

Fixes 96c3d06a3547 ("fib: implement RCU rule reclamation")

---
Note: applied directly on main to fix random fib unit tests failure in CI.

---
 app/test/test_fib.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
app/test/test_fib.c +2 -2
index 08650e41ff..15035ee045 100644
@@ -389,7 +389,7 @@ int32_t
 test_invalid_rcu(void)
 {
 	struct rte_fib *fib = NULL;
-	struct rte_fib_conf config;
+	struct rte_fib_conf config = { 0 };
 	size_t sz;
 	struct rte_rcu_qsbr *qsv;
 	struct rte_rcu_qsbr *qsv2;
@@ -503,7 +503,7 @@ test_fib_rcu_qsbr_reader(void *arg)
 int32_t
 test_fib_rcu_sync_rw(void)
 {
-	struct rte_fib_conf config;
+	struct rte_fib_conf config = { 0 };
 	size_t sz;
 	int32_t status;
 	uint32_t i, next_hop;
Signature · 1 line
2.46.2