Re: [PATCH net-next 1/4] cxgb4: Re-work the logic for mps refcounting

2019-06-24 Thread Raju Rangoju
On Sunday, June 06/23/19, 2019 at 11:34:23 -0700, David Miller wrote: > From: Raju Rangoju > Date: Fri, 21 Jun 2019 20:06:33 +0530 > > > +struct mps_entries_ref { > > + struct list_head list; > > + u8 addr[ETH_ALEN]; > > + u8 mask[ETH_ALEN]; > > + u16 idx; > > + atomic_t refcnt; > > +};

Re: [PATCH net-next 1/4] cxgb4: Re-work the logic for mps refcounting

2019-06-23 Thread David Miller
From: Raju Rangoju Date: Fri, 21 Jun 2019 20:06:33 +0530 > +struct mps_entries_ref { > + struct list_head list; > + u8 addr[ETH_ALEN]; > + u8 mask[ETH_ALEN]; > + u16 idx; > + atomic_t refcnt; > +}; Since you're making this change, please use refcnt_t.

[PATCH net-next 1/4] cxgb4: Re-work the logic for mps refcounting

2019-06-21 Thread Raju Rangoju
Remove existing mps refcounting code which was added only for encap filters and add necessary data structures/functions to support mps reference counting for all the mac filters. Also add wrapper functions for allocating and freeing encap mac filters. Signed-off-by: Raju Rangoju --- drivers/net/