]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Use refcount_t for refcount
authorChuhong Yuan <hslester96@gmail.com>
Fri, 2 Aug 2019 16:48:28 +0000 (00:48 +0800)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 9 Aug 2019 21:54:11 +0000 (14:54 -0700)
commitc1e471cb1a7d88a3117a068594cb96b031c8f827
treef3c75cc514035dc0c3984bf54cbf951df8fdd876
parent7ab836851800eebb00fe2c046ce779301dde63ea
net/mlx5e: Use refcount_t for refcount

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 <hslester96@gmail.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/lib/vxlan.c