net/mlx5e: Generalize close RQ
authorAya Levin <ayal@nvidia.com>
Mon, 8 Feb 2021 18:56:02 +0000 (20:56 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Fri, 26 Mar 2021 02:50:06 +0000 (19:50 -0700)
commite078e8df4224d1c422081192e9a6d3db85fa1634
tree8aeaea21b7ca503142205c55cc10d8baacec511f
parenta8dd7ac12fc3f6d37758e8c1e650600d71554a21
net/mlx5e: Generalize close RQ

Allow different flavours of RQ to use the same close flow. Add validity
checks to support different RQ types which not necessarily initialize
all the RQ's functionality.

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