numam-dpdk/drivers/net/vhost
Junjie Chen 30a701a537 net/vhost: fix crash when creating vdev dynamically
When creating vdev dynamically, vhost pmd driver starts directly without
checking TX/RX queues are ready or not, and thus causes segmentation fault
when vhost library accesses queues. This patch adds a flag to check whether
queues are setup or not, and adds queues setup into dev_start function to
allow user to start them after setting up.

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

Signed-off-by: Junjie Chen <junjie.j.chen@intel.com>
Tested-by: Zhiyong Yang <zhiyong.yang@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
2018-03-30 14:08:44 +02:00
..
Makefile drivers: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
rte_eth_vhost.c net/vhost: fix crash when creating vdev dynamically 2018-03-30 14:08:44 +02:00
rte_eth_vhost.h ethdev: increase port id range 2017-10-06 18:23:25 +02:00
rte_pmd_vhost_version.map net/vhost: remove feature related APIs 2017-04-01 10:40:13 +02:00