Skip to content

Commit

Permalink
test/fib: fix RCU tests
Browse files Browse the repository at this point in the history
The flags field must be initialized to 0 following commit
e194f3c ("fib: lookup IPv4 address in network order").

This was missed when merging the FIB RCU reclaim.

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

Signed-off-by: David Marchand <[email protected]>
  • Loading branch information
david-marchand committed Oct 15, 2024
1 parent d8381a8 commit 1d75e16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/test/test_fib.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 1d75e16

Please sign in to comment.