From: Itsuro Oda Date: Thu, 6 Feb 2020 01:39:35 +0000 (+0900) Subject: net/vhost: fix probing in secondary process X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=75ad5aadbd64fa89d35fa4a38d54e10cdd8e838e;p=dpdk.git net/vhost: fix probing in secondary process This patch adds lacking member setting and makes secondary probe complete. Fixes: 4852aa8f6e21 ("drivers/net: enable hotplug on secondary process") Cc: stable@dpdk.org Signed-off-by: Itsuro Oda Reviewed-by: Maxime Coquelin --- diff --git a/drivers/net/vhost/rte_eth_vhost.c b/drivers/net/vhost/rte_eth_vhost.c index d7bba5c6e2..307de2c682 100644 --- a/drivers/net/vhost/rte_eth_vhost.c +++ b/drivers/net/vhost/rte_eth_vhost.c @@ -1397,8 +1397,11 @@ rte_pmd_vhost_probe(struct rte_vdev_device *dev) VHOST_LOG(ERR, "Failed to probe %s\n", name); return -1; } - /* TODO: request info from primary to set up Rx and Tx */ + eth_dev->rx_pkt_burst = eth_vhost_rx; + eth_dev->tx_pkt_burst = eth_vhost_tx; eth_dev->dev_ops = &ops; + if (dev->device.numa_node == SOCKET_ID_ANY) + dev->device.numa_node = rte_socket_id(); eth_dev->device = &dev->device; rte_eth_dev_probing_finish(eth_dev); return 0;