<div dir="ltr">Hi Stephen ,<br><br>Thanks for your suggestions.I am able to resolve --vdev error however I am having another issue related to buffer.<br>.<b>/dpdk-l3fwd -c f -n 4 --vdev=net_tap3 -- -p 0x3 --config="(0,0,1),(0,1,2)"</b><br>EAL: Detected CPU lcores: 8<br>EAL: Detected NUMA nodes: 1<br>EAL: Detected static linkage of DPDK<br>EAL: Multi-process socket /var/run/dpdk/rte/mp_socket<br>EAL: Selected IOVA mode 'PA'<br>EAL: No available 1048576 kB hugepages reported<br>EAL: VFIO support initialized<br>EAL: Probe PCI driver: net_virtio (1af4:1000) device: 0000:00:03.0 (socket 0)<br>eth_virtio_pci_init(): Failed to init PCI device<br>EAL: Requested device 0000:00:03.0 cannot be used<br>EAL: Probe PCI driver: net_iavf (8086:154c) device: 0000:00:05.0 (socket 0)<br>EAL: Probe PCI driver: net_iavf (8086:154c) device: 0000:00:06.0 (socket 0)<br>TELEMETRY: No legacy callbacks, legacy socket not created<br>Neither LPM, EM, or FIB selected, defaulting to LPM<br>Initializing port 0 ... Creating queues: nb_rxq=2 nb_txq=4... Port 0 modified RSS hash function based on hardware support,requested:0xa38c configured:0x238c<br><b>iavf_dev_init_vlan(): Failed to update vlan offload<br>iavf_dev_configure(): configure VLAN failed: -95<br>EAL: Error - exiting with code: 1<br> Cause: Cannot init mbuf pool on socket 0</b><br><br>Do I need to update any parameters?<br>Do I need to add a routing rule parameter?<br>Any help /pointers will be really appreciated.<br>FYI. I just want to testL3 forwarding via DPDK using the Tap interface The flow is :<br>On Vm1 .<b>/dpdk-l3fwd will create a Tap interface and then I will link this interface with a network namespace and then ping a destination address via the DPDK application running on VM1 and get captured on DPDK application running on another VM2 and I am stuck with creation Tap interface on VM1 via </b>
.<b>/dpdk-l3fwd.<br></b><br>Regards,<div>Dinesh Kumar<br><br><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Apr 10, 2023 at 7:08 PM Stephen Hemminger <<a href="mailto:stephen@networkplumber.org">stephen@networkplumber.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Mon, 10 Apr 2023 18:47:59 -0400<br>
Dinesh Kumar <<a href="mailto:raidinesh@utexas.edu" target="_blank">raidinesh@utexas.edu</a>> wrote:<br>
<br>
> Hi There,<br>
> I am new to the DPDK example and having issue with using --vdev options<br>
> for DPDK example and it is throwing the below error.<br>
> <br>
> ./dpdk-l3fwd --log-level *:debug -c f -n 4 -- -p 0x3 --vdev<br>
> 'net_pcap0,rx_pcap=input.pcap,tx_pcap=output.pcap'<br>
> <br>
> -----------------------<br>
> iavf_check_api_version(): Peer is supported PF host<br>
> iavf_read_msg_from_pf(): Can't read msg from AQ<br>
> iavf_read_msg_from_pf(): AQ from pf carries opcode 3, retval 0<br>
> iavf_dev_alarm_handler(): ICR01_ADMINQ is reported<br>
> iavf_handle_pf_event_msg(): VIRTCHNL_EVENT_LINK_CHANGE event<br>
> iavf_handle_virtchnl_msg(): adminq response is received, opcode = 26<br>
> EAL: lib.telemetry log level changed from disabled to debug<br>
> TELEMETRY: Attempting socket bind to path<br>
> '/var/run/dpdk/rte/dpdk_telemetry.v2'<br>
> TELEMETRY: Socket creation and binding ok<br>
> TELEMETRY: Telemetry initialized ok<br>
> TELEMETRY: No legacy callbacks, legacy socket not created<br>
> *./dpdk-l3fwd: unrecognized option '--vdev'*<br>
> ./dpdk-l3fwd [EAL options] -- -p PORTMASK [-P] [--lookup] --config<br>
> (port,queue,lcore)[,(port,queue,lcore)] [--rx-queue-size NPKTS]<br>
> [--tx-queue-size NPKTS] [--eth-dest=X,MM:MM:MM:MM:MM:MM] [--max-pkt-len<br>
> PKTLEN] [--no-numa] [--hash-entry-num] [--ipv6] [--parse-ptype]<br>
> [--per-port-pool] [--mode] [--eventq-sched] [--event-vector<br>
> [--event-vector-size SIZE] [--event-vector-tmo NS]] [-E] [-L]<br>
> <br>
> please let me know if I am missing some options that need to be added with<br>
> --vdev<br>
<br>
<br>
DPDK options are split into the options for the DPDK infrastructure (EAL) and those<br>
used by the applications. They are separated by the -- option.<br>
<br>
In your example, the vdev option belongs to the DPDK infrastructure not the application.<br>
Put it it before the -- and it should work<br>
</blockquote></div>