mlxsw: spectrum_span: Use 'refcount_t' for reference counting
authorIdo Schimmel <idosch@mellanox.com>
Fri, 24 Apr 2020 15:43:44 +0000 (18:43 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 24 Apr 2020 22:41:51 +0000 (15:41 -0700)
commit4c00dafc59c7cc25a381abf7671b203a2fcfca71
treed8b01173b9a06ca3c6c4f336a03ac0d5e36b9d94
parentc0c2899cf66ee7a68e5b3a7a135089622e005008
mlxsw: spectrum_span: Use 'refcount_t' for reference counting

'refcount_t' is very useful for catching over/under flows. Convert the
SPAN agent objects to use it instead of 'int' for their reference count.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_span.c
drivers/net/ethernet/mellanox/mlxsw/spectrum_span.h