]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
mlxsw: spectrum_fid: Use 'refcount_t' for FID reference counting
authorIdo Schimmel <idosch@mellanox.com>
Mon, 17 Feb 2020 14:29:31 +0000 (16:29 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Feb 2020 22:42:53 +0000 (14:42 -0800)
commitb96f54698040a51b8a87bdf09478faad56375680
tree107981c61c0f8192a5a624282d2d0b8ca110bd06
parent583cb0b4121f73e9e093dc3a14e419de6dab341e
mlxsw: spectrum_fid: Use 'refcount_t' for FID reference counting

'refcount_t' is very useful for catching over/under flows. Convert the
FID (Filtering Identifier) objects to use it instead of 'unsigned int'
for their reference count.

A subsequent patch in the series will change the way VXLAN devices hold
/ release the FID reference, which is why the conversion is made now.

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