struct rte_device *dev = rte_eth_devices[port_id].device;
int ret;
- /* Tell VSP to switch data path to synthentic */
+ /* Tell VSP to switch data path to synthetic */
hn_vf_remove(hv);
PMD_DRV_LOG(NOTICE, "Start to remove port %d", port_id);
PMD_DRV_LOG(ERR, "rte_eth_dev_stop failed port_id=%u ret=%d",
port_id, ret);
+ /* Record the device parameters for possible hotplug events */
+ if (dev->devargs && dev->devargs->args)
+ hv->vf_devargs = strdup(dev->devargs->args);
+
ret = rte_eth_dev_close(port_id);
if (ret)
PMD_DRV_LOG(ERR, "rte_eth_dev_close failed port_id=%u ret=%d",