cxgb4: smt: Use normal int for refcount
authorChuhong Yuan <hslester96@gmail.com>
Tue, 6 Aug 2019 02:58:54 +0000 (10:58 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 Aug 2019 01:12:17 +0000 (18:12 -0700)
commitad2dcba008a4a24a39ba39300a460bec2f73fd04
tree8300287b526ed9f49c70bb2d5fb98173559a62b0
parent4a8937b83892cb69524291cae6cdabad4a8be033
cxgb4: smt: Use normal int for refcount

All refcount operations are protected by spinlocks now.
Then the atomic counter can be replaced by a normal int.

This patch depends on PATCH 1/2.

Signed-off-by: Chuhong Yuan <hslester96@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/smt.c
drivers/net/ethernet/chelsio/cxgb4/smt.h