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)
commitb51c225e6c4e987e131b8b1332f66969382bf328
treef3c75cc514035dc0c3984bf54cbf951df8fdd876
parentc938451f6b9ccbf25eceb27fe1d1c24fd98af923
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