net/mlx4: fix device detach
authorMichael Baum <michaelba@nvidia.com>
Wed, 20 Jan 2021 08:14:50 +0000 (08:14 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 29 Jan 2021 17:16:07 +0000 (18:16 +0100)
commit8e1630e0f1985beb7e48429e3a7614f4732b0e68
tree4fce6f7e739a6b43e91b3ff5b8a99fe5276e3e37
parent14ccfd2ed1686fa6bb42117b0461be278816eca6
net/mlx4: fix device detach

When mlx4 device is probed, 2 different ethdev ports may be created for
the 2 physical ports of the device.

Wrongly, when the device is removed, the created ports are not released.

Close and release the ethdev ports in remove process.

Bugzilla ID: 488
Fixes: 7fae69eeff13 ("mlx4: new poll mode driver")
Cc: stable@dpdk.org
Reported-by: David Marchand <david.marchand@redhat.com>
Signed-off-by: Michael Baum <michaelba@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
Tested-by: David Marchand <david.marchand@redhat.com>
drivers/net/mlx4/mlx4.c