Re: [dpdk-dev] [PATCH v8 1/3] lib/lpm: integrate RCU QSBR

2020-07-09 Thread Ruifeng Wang
Nagarahalli > ; nd > Subject: Re: [dpdk-dev] [PATCH v8 1/3] lib/lpm: integrate RCU QSBR > > Hello Ruifeng, > Hi David, Thanks for your review and suggestions. > On Thu, Jul 9, 2020 at 10:03 AM Ruifeng Wang > wrote: > > diff --git a/lib/librte_lpm/rte_lpm.c b/lib/l

Re: [dpdk-dev] [PATCH v8 1/3] lib/lpm: integrate RCU QSBR

2020-07-09 Thread David Marchand
Hello Ruifeng, On Thu, Jul 9, 2020 at 10:03 AM Ruifeng Wang wrote: > diff --git a/lib/librte_lpm/rte_lpm.c b/lib/librte_lpm/rte_lpm.c > index 38ab512a4..4fbf5b6df 100644 > --- a/lib/librte_lpm/rte_lpm.c > +++ b/lib/librte_lpm/rte_lpm.c > @@ -1,5 +1,6 @@ > /* SPDX-License-Identifier: BSD-3-Clause

[dpdk-dev] [PATCH v8 1/3] lib/lpm: integrate RCU QSBR

2020-07-09 Thread Ruifeng Wang
Currently, the tbl8 group is freed even though the readers might be using the tbl8 group entries. The freed tbl8 group can be reallocated quickly. This results in incorrect lookup results. RCU QSBR process is integrated for safe tbl8 group reclaim. Refer to RCU documentation to understand various