Skip to content

Commit 9da1cd9

Browse files
committed
// CONTAINER(DOCKER): Fixed virtio_user can't run in multi-progress
mode.
1 parent c4c89ef commit 9da1cd9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

dpdk/drivers/net/virtio/virtio_user_ethdev.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -511,6 +511,8 @@ virtio_user_pmd_probe(struct rte_vdev_device *dev)
511511
eth_dev = rte_eth_dev_attach_secondary(rte_vdev_device_name(dev));
512512
if (!eth_dev)
513513
goto end;
514+
// CONTAINER(DOCKER): Fixed virtio_user can't run in multi-progress mode.
515+
eth_dev->device = &dev->device;
514516
}
515517

516518
/* previously called by rte_pci_probe() for physical dev */

0 commit comments

Comments
 (0)