]> 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)
commita05b48f0ebfae846a86b1acfeffb834976788bcc
treef3c75cc514035dc0c3984bf54cbf951df8fdd876
parent827620d96426e064990f605a99f26bf97bc4b560
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