numam-dpdk/drivers/net/vhost
Maxime Coquelin 366a0500f4 net/vhost: prevent multiple setups on reconfiguration
Ethdev's .dev_configure callback can be called multiple
time during a device life-time, but Vhost makes the
wrong assumption that it is not the case and try to
setup again the device on reconfiguration.

This patch ensures the device hasn't been already setup
before proceeding.

Fixes: 3d01b759d2 ("net/vhost: delay driver setup")
Cc: stable@dpdk.org

Reported-by: Yinan Wang <yinan.wang@intel.com>
Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Tested-by: Yinan Wang <yinan.wang@intel.com>
Reviewed-by: David Marchand <david.marchand@redhat.com>
Reviewed-by: Tiwei Bie <tiwei.bie@intel.com>
2020-02-19 13:51:06 +01:00
..
Makefile build: remove individual library versions 2019-11-20 23:05:39 +01:00
meson.build build: remove individual library versions 2019-11-20 23:05:39 +01:00
rte_eth_vhost.c net/vhost: prevent multiple setups on reconfiguration 2020-02-19 13:51:06 +01:00
rte_eth_vhost.h net/vhost: update license to SPDX format 2018-04-27 15:54:56 +01:00
rte_pmd_vhost_version.map build: align symbols with global ABI version 2019-11-20 23:05:39 +01:00