Re: [PATCH v3 1/2] fib: implement RCU rule reclamation

2024-10-14 Thread David Marchand
On Thu, Oct 10, 2024 at 1:27 PM Vladimir Medvedkin wrote: > > Currently, for DIR24-8 algorithm, the tbl8 group is freed even though the > readers might be using the tbl8 group entries. The freed tbl8 group can > be reallocated quickly. As a result, lookup may be performed incorrectly. > > To addre

Re: [PATCH v3 1/2] fib: implement RCU rule reclamation

2024-10-14 Thread David Marchand
On Thu, Oct 10, 2024 at 1:27 PM Vladimir Medvedkin wrote: > diff --git a/lib/fib/rte_fib.c b/lib/fib/rte_fib.c > index 4f9fba5a4f..730f50c1ba 100644 > --- a/lib/fib/rte_fib.c > +++ b/lib/fib/rte_fib.c > @@ -338,3 +338,14 @@ rte_fib_select_lookup(struct rte_fib *fib, > return -EINVA

Re: [PATCH v3 1/2] fib: implement RCU rule reclamation

2024-10-11 Thread David Marchand
On Thu, Oct 10, 2024 at 1:27 PM Vladimir Medvedkin wrote: > > Currently, for DIR24-8 algorithm, the tbl8 group is freed even though the > readers might be using the tbl8 group entries. The freed tbl8 group can > be reallocated quickly. As a result, lookup may be performed incorrectly. > > To addre

[PATCH v3 1/2] fib: implement RCU rule reclamation

2024-10-10 Thread Vladimir Medvedkin
Currently, for DIR24-8 algorithm, the tbl8 group is freed even though the readers might be using the tbl8 group entries. The freed tbl8 group can be reallocated quickly. As a result, lookup may be performed incorrectly. To address that, RCU QSBR is integrated for safe tbl8 group reclamation. Sign