Re: [dpdk-dev] [PATCH v4 16/22] net/bnxt: fix table reference count for shadow tcam

2020-07-28 Thread Ajit Khaparde
On Tue, Jul 28, 2020 at 10:39 AM Ferruh Yigit wrote: > On 7/28/2020 6:33 PM, Ajit Khaparde wrote: > > > > > > On Tue, Jul 28, 2020 at 10:00 AM Ferruh Yigit > > wrote: > > > > On 7/28/2020 7:34 AM, Ajit Khaparde wrote: > > > From: Mike Baucom >

Re: [dpdk-dev] [PATCH v4 16/22] net/bnxt: fix table reference count for shadow tcam

2020-07-28 Thread Ajit Khaparde
On Tue, Jul 28, 2020 at 10:00 AM Ferruh Yigit wrote: > On 7/28/2020 7:34 AM, Ajit Khaparde wrote: > > From: Mike Baucom > > > > Moved setting the refcnt for shadow tcam and table entries to the > > allocation path only. The insert can be called multiple times for > > updates and was resetting t

Re: [dpdk-dev] [PATCH v4 16/22] net/bnxt: fix table reference count for shadow tcam

2020-07-28 Thread Ferruh Yigit
On 7/28/2020 6:33 PM, Ajit Khaparde wrote: > > > On Tue, Jul 28, 2020 at 10:00 AM Ferruh Yigit > wrote: > > On 7/28/2020 7:34 AM, Ajit Khaparde wrote: > > From: Mike Baucom > > > > > Moved setting the refcnt

Re: [dpdk-dev] [PATCH v4 16/22] net/bnxt: fix table reference count for shadow tcam

2020-07-28 Thread Ferruh Yigit
On 7/28/2020 7:34 AM, Ajit Khaparde wrote: > From: Mike Baucom > > Moved setting the refcnt for shadow tcam and table entries to the > allocation path only. The insert can be called multiple times for > updates and was resetting the refcnt to 1 each time. Now multiple > insertion/modifications

[dpdk-dev] [PATCH v4 16/22] net/bnxt: fix table reference count for shadow tcam

2020-07-28 Thread Ajit Khaparde
From: Mike Baucom Moved setting the refcnt for shadow tcam and table entries to the allocation path only. The insert can be called multiple times for updates and was resetting the refcnt to 1 each time. Now multiple insertion/modifications will not change the reference count. Fixes: 3cf8fb975d