net/mlx5e: Free drop RQ in a dedicated function
authorTariq Toukan <tariqt@nvidia.com>
Tue, 1 Dec 2020 22:41:54 +0000 (14:41 -0800)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 8 Dec 2020 19:28:44 +0000 (11:28 -0800)
commitcdd3f2367aebc375197aa0d3a986a79e102e6862
tree3055688d1e3bb8bfeefdce399099686d1ef2eb24
parent8e98387b16b88440b06e57965f6b2d789acd9451
net/mlx5e: Free drop RQ in a dedicated function

The drop RQ has very limited objects to be freed, and differs
from regular RQs in the context that it is freed from.
Add a dedicated function for it, use it where needed, and remove
the drop_rq-specific checks in the generic function.

Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Reviewed-by: Aya Levin <ayal@nvidia.com>
Reviewed-by: Maxim Mikityanskiy <maximmi@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c