Re: [ovs-dev] [PATCH v1 2/9] conntrack: Use a cmap to store zone limits

2021-02-23 Thread Gaƫtan Rivet
On Tue, Feb 23, 2021, at 22:55, William Tu wrote: > Thanks, I have one question inline. > > On Wed, Feb 17, 2021 at 8:34 AM Gaetan Rivet wrote: > > > > Change the data structure from hmap to cmap for zone limits. > > As they are shared amongst multiple conntrack users, multiple > > readers want

Re: [ovs-dev] [PATCH v1 2/9] conntrack: Use a cmap to store zone limits

2021-02-23 Thread William Tu
Thanks, I have one question inline. On Wed, Feb 17, 2021 at 8:34 AM Gaetan Rivet wrote: > > Change the data structure from hmap to cmap for zone limits. > As they are shared amongst multiple conntrack users, multiple > readers want to check the current zone limit state before progressing in >

[ovs-dev] [PATCH v1 2/9] conntrack: Use a cmap to store zone limits

2021-02-17 Thread Gaetan Rivet
Change the data structure from hmap to cmap for zone limits. As they are shared amongst multiple conntrack users, multiple readers want to check the current zone limit state before progressing in their processing. Using a CMAP allows doing lookups without taking the global 'ct_lock', thus reducing