vdev socket was always set to 0. We are now setting the socket for the
vdev device to the socket of the corresponding port.
Signed-off-by: Luc Provoost <luc.provoost@gmail.com>
Change-Id: If687c5e20b7f3050d96c2fdfa94ef29db051f24c
if ((ptr = strstr(port_cfg->short_name, "_pmd")) != NULL) {
*ptr = '\x0';
}
+ // Set socket for vdev device identical to socket of corresponding port
+ if (prox_port_cfg[port_id].is_vdev) {
+ prox_port_cfg[port_id].socket = prox_port_cfg[prox_port_cfg[port_id].dpdk_mapping].socket;
+ continue;
+ }
#if RTE_VERSION < RTE_VERSION_NUM(18,5,0,0)
pci_dev = dev_info.pci_dev;