]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite6740684315902004236ac85995156f0e2e45b69
treed8b01173b9a06ca3c6c4f336a03ac0d5e36b9d94
parentb605bc612c8b628bf84b29750db516f8e973c512
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