Re: [PATCH v2 2/2] cxgb4: smt: Use refcount_t for refcount

2019-08-05 Thread David Miller
From: Chuhong Yuan Date: Fri, 2 Aug 2019 16:35:47 +0800 > refcount_t is better for reference counters since its > implementation can prevent overflows. > So convert atomic_t ref counters to refcount_t. > > Signed-off-by: Chuhong Yuan > --- > Changes in v2: > - Convert refcount from 0-base to

[PATCH v2 2/2] cxgb4: smt: 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. Signed-off-by: Chuhong Yuan --- Changes in v2: - Convert refcount from 0-base to 1-base. drivers/net/ethernet/chelsio/cxgb4/smt.c | 14 +++--- dr

[PATCH v2 2/2] cxgb4: smt: 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. Signed-off-by: Chuhong Yuan --- Changes in v2: - Convert refcount from 0-base to 1-base. drivers/net/ethernet/chelsio/cxgb4/smt.c | 14 +++--- 1