DPDK usage discussions
 help / color / mirror / Atom feed
* Implementing a simple TAP PMD to dpdk-vhost structure
@ 2023-09-06  1:56 Nicolson Ken (ニコルソン ケン)
  2023-09-06  6:07 ` David Marchand
  0 siblings, 1 reply; 9+ messages in thread
From: Nicolson Ken (ニコルソン ケン) @ 2023-09-06  1:56 UTC (permalink / raw)
  To: users

Hi all,

Using dpdk 22.11.2 on Ubuntu 22.04

I have a really simple use case, but I cannot find how to implement it. I've set up QEMU with all the required virtio support, so I just need to configure my Host OS-side. I want to send data from a PCAP file via tcpreplay from the Host to the Guest, so I use this command line:

$ sudo /home/integ/dpdk-stable-22.11.2/build/examples/dpdk-vhost -l 0-3 -n 4 --socket-mem 1024 --vdev 'net_tap0' -- --socket-file /tmp/sock0 --client -p 1

However, this fails with:

EAL: Detected CPU lcores: 20
EAL: Detected NUMA nodes: 1
EAL: Detected static linkage of DPDK
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: Selected IOVA mode 'PA'
VHOST_PORT: Failed to get VMDq info.
EAL: Error - exiting with code: 1
  Cause: Cannot initialize network ports

The offending code is from examples/vhost/main.c:

	if (dev_info.max_vmdq_pools == 0) {
		RTE_LOG(ERR, VHOST_PORT, "Failed to get VMDq info.\n");
		return -1;
	}

This is because the TAP PMD doesn't support VMDq pools.

Is there an easy way to get this to work?

Thanks,
Ken

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2023-09-07  7:21 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-06  1:56 Implementing a simple TAP PMD to dpdk-vhost structure Nicolson Ken (ニコルソン ケン)
2023-09-06  6:07 ` David Marchand
2023-09-06  7:15   ` Maxime Coquelin
2023-09-06  8:28     ` Nicolson Ken (ニコルソン ケン)
2023-09-06  8:43       ` Maxime Coquelin
2023-09-06  7:52   ` Nicolson Ken (ニコルソン ケン)
2023-09-06  8:41     ` David Marchand
2023-09-07  6:22       ` Nicolson Ken (ニコルソン ケン)
2023-09-07  7:21         ` Maxime Coquelin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).