Re: [Intel-wired-lan] [PATCH 2/2] ixgbe: Use refcount_t for refcount

2019-08-05 Thread Alexander Duyck
On Fri, Aug 2, 2019 at 6:47 AM Willem de Bruijn wrote: > > On Fri, Aug 2, 2019 at 6:55 AM Chuhong Yuan wrote: > > > > refcount_t is better for reference counters since its > > implementation can prevent overflows. > > So convert atomic_t ref counters to refcount_t. > > > > Also convert refcount f

Re: [Intel-wired-lan] [PATCH 2/2] ixgbe: Use refcount_t for refcount

2019-08-05 Thread Willem de Bruijn
rg; Chuhong Yuan ; linux- > > ker...@vger.kernel.org; intel-wired-...@lists.osuosl.org; David S . Miller > > > > Subject: [Intel-wired-lan] [PATCH 2/2] ixgbe: Use refcount_t for refcount > > > > refcount_t is better for reference counters since its implementation can

RE: [Intel-wired-lan] [PATCH 2/2] ixgbe: Use refcount_t for refcount

2019-08-05 Thread Bowers, AndrewX
; David S . Miller > > Subject: [Intel-wired-lan] [PATCH 2/2] ixgbe: Use refcount_t for refcount > > refcount_t is better for reference counters since its implementation can > prevent overflows. > So convert atomic_t ref counters to refcount_t. > > Also convert refcount from 0

Re: [PATCH 2/2] ixgbe: Use refcount_t for refcount

2019-08-02 Thread Willem de Bruijn
On Fri, Aug 2, 2019 at 6:55 AM Chuhong Yuan wrote: > > refcount_t is better for reference counters since its > implementation can prevent overflows. > So convert atomic_t ref counters to refcount_t. > > Also convert refcount from 0-based to 1-based. > > This patch depends on PATCH 1/2. > > Signed-

[PATCH 2/2] ixgbe: Use refcount_t for refcount

2019-08-02 Thread Chuhong Yuan
refcount_t is better for reference counters since its implementation can prevent overflows. So convert atomic_t ref counters to refcount_t. Also convert refcount from 0-based to 1-based. This patch depends on PATCH 1/2. Signed-off-by: Chuhong Yuan --- drivers/net/ethernet/intel/ixgbe/ixgbe_fco