net/mlx5e: Fix error path for RQ alloc
authorAya Levin <ayal@mellanox.com>
Mon, 3 Aug 2020 13:22:42 +0000 (16:22 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Fri, 2 Oct 2020 17:59:56 +0000 (10:59 -0700)
commit08a762cecc60e19cd64e379df6580f1997408e04
treebb77541cc18ceacaa21dbc5db8aaca7f15a6706f
parent732ebfab7fe96b7ac9a3df3208f14752a4bb6db3
net/mlx5e: Fix error path for RQ alloc

Increase granularity of the error path to avoid unneeded free/release.
Fix the cleanup to be symmetric to the order of creation.

Fixes: 0ddf543226ac ("xdp/mlx5: setup xdp_rxq_info")
Fixes: 422d4c401edd ("net/mlx5e: RX, Split WQ objects for different RQ types")
Signed-off-by: Aya Levin <ayal@mellanox.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c