]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Use helper to increment, decrement rate entry refcount
authorParav Pandit <parav@nvidia.com>
Thu, 25 Feb 2021 11:38:07 +0000 (13:38 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Fri, 2 Apr 2021 23:13:06 +0000 (16:13 -0700)
commitd4c09fd769d51c5c5c6d8733c4c5b1533c54023b
tree9f5eddf43c15508a5deca62485aa4fc6db19e8ea
parent947e6334069d25d31fbe569354af85935f1f7522
net/mlx5: Use helper to increment, decrement rate entry refcount

Rate limit entry refcount can be incremented uniformly when it is newly
allocated or reused.
So simplify the code to increment refcount at one place.

Use decrement refcount helper in two routines.

Signed-off-by: Parav Pandit <parav@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/rl.c