summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlx5/core/en.h
diff options
context:
space:
mode:
authorAlaa Hleihel2019-05-19 10:11:49 +0200
committerSaeed Mahameed2019-06-07 23:40:36 +0200
commitdd80857bf388abd0c64dd3aa4fbf7d407deba819 (patch)
tree6d80419f3b487082c5051f6937bc784504e51539 /drivers/net/ethernet/mellanox/mlx5/core/en.h
parentnet/mlx5: Update pci error handler entries and command translation (diff)
downloadkernel-qcow2-linux-dd80857bf388abd0c64dd3aa4fbf7d407deba819.tar.gz
kernel-qcow2-linux-dd80857bf388abd0c64dd3aa4fbf7d407deba819.tar.xz
kernel-qcow2-linux-dd80857bf388abd0c64dd3aa4fbf7d407deba819.zip
net/mlx5: Avoid reloading already removed devices
Prior to reloading a device we must first verify that it was not already removed. Otherwise, the attempt to remove the device will do nothing, and in that case we will end up proceeding with adding an new device that no one was expecting to remove, leaving behind used resources such as EQs that causes a failure to destroy comp EQs and syndrome (0x30f433). Fix that by making sure that we try to remove and add a device (based on a protocol) only if the device is already added. Fixes: c5447c70594b ("net/mlx5: E-Switch, Reload IB interface when switching devlink modes") Signed-off-by: Alaa Hleihel <alaa@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/en.h')
0 files changed, 0 insertions, 0 deletions