numam-dpdk/drivers/net/vhost
Jianfeng Tan 954820dc7d net/vhost: fix unix socket not removed as closing
The commit aed0b12930 ("net/vhost: fix socket file deleted on stop")
moves rte_vhost_driver_register and rte_vhost_driver_unregister from
dev_start() and dev_stop() into driver's probe() and remove().

Apps, like testpmd, using vhost pmd in server mode, usually calls
dev_stop() and dev_close() as quitting, instead of driver-specific
remove(). Then those unix socket files have no chance to get removed.

Semantically, device-specific things should be put into device-specific
APIs. Fix this issue by moving rte_vhost_driver_unregister, plus other
structure free into dev_close().

Fixes: aed0b12930 ("net/vhost: fix socket file deleted on stop")
Cc: stable@dpdk.org

Reported-by: Lei Yao <lei.a.yao@intel.com>
Signed-off-by: Jianfeng Tan <jianfeng.tan@intel.com>
Acked-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
2017-01-30 14:19:48 +01:00
..
Makefile mk: fix internal dependencies 2016-06-29 13:33:01 +02:00
rte_eth_vhost.c net/vhost: fix unix socket not removed as closing 2017-01-30 14:19:48 +01:00
rte_eth_vhost.h net/vhost: retrieve vid for a given port 2016-09-29 15:07:13 +02:00
rte_pmd_vhost_version.map net/vhost: retrieve vid for a given port 2016-09-29 15:07:13 +02:00