net/thunderx: fix crash on detach
authorAmit Gupta <agupta3@marvell.com>
Mon, 5 Aug 2019 08:00:44 +0000 (13:30 +0530)
committerJerin Jacob <jerinj@marvell.com>
Mon, 5 Aug 2019 17:03:01 +0000 (19:03 +0200)
commit230dce6461b92f36c819f1cf29c0c0e0f8d11ea8
tree59580b1e95cf65c69405c4c66349b7a13542e187
parente359e3b796b1fc15a600d87a1e380c71f77e8daa
net/thunderx: fix crash on detach

Fix the PCIe detach segfault by releasing eth_dev resources
by adding nicvf cleanup support on PCI detach.

Fixes: fdf91e0f2fac ("drivers/net: do not use ethdev driver")
Cc: stable@dpdk.org
Signed-off-by: Amit Gupta <agupta3@marvell.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
drivers/net/thunderx/nicvf_ethdev.c