From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 94E804291F for ; Tue, 11 Apr 2023 22:13:37 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7E69940E2D; Tue, 11 Apr 2023 22:13:37 +0200 (CEST) Received: from mail-vs1-f52.google.com (mail-vs1-f52.google.com [209.85.217.52]) by mails.dpdk.org (Postfix) with ESMTP id C462240DFD for ; Tue, 11 Apr 2023 22:13:35 +0200 (CEST) Received: by mail-vs1-f52.google.com with SMTP id b17so8606479vsj.7 for ; Tue, 11 Apr 2023 13:13:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=utexas-edu.20210112.gappssmtp.com; s=20210112; t=1681244015; x=1683836015; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=yh64/mqH9ZTJOsjM/hevwGj06ew6ay0hA5ftCL9kqx4=; b=b+gbjLTH34wW5oAHpggK4Mph/8PFpA6AetKgNgICLKJbf9IwRylYws+PhMKlOA2kwx y4Da6hz1Q7LtXeEKVWJ6x3dlhPJk51EXaSvXlRXonZWKcUGlWTQ+kR2ch7Ou+UslYcxn IR7Ox+KhAF1GTHUmO+/IE9tIdnapfgBTJsqd3ZCvy07LkN32AZV+CDS69OdXUl1lP7ni LGbDdSELcZVZOAuhj4xv7VcBhRR+IRsUnR18SxVzBcpEExH01gd0qvy/nbbN+mQGFFE7 R5vYV3aQMafteH4RaqKZcuRJPasHOld37QnmVyLyUlcOsKIK6jn1hvuhJxjfW4Rsj1aH KJKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681244015; x=1683836015; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=yh64/mqH9ZTJOsjM/hevwGj06ew6ay0hA5ftCL9kqx4=; b=2gsb7ESCcjPwOitOKJTxnoQUmmmmqadrmbcvPvmEZ+XeXoyYOPQMHTc5nCqAo0KFMp 9QMG/fOarTRX5hTRGHfYNCE+0GHHQMWheEuq8qzM2NDkMsCN+3cdM+OQUcDZOuR3MZb/ YsSnyZxEPJeS9EFhqhOmMYP5EUUhOIIGYWiWrZ/V8j8/YHhkrrNsW2evj3mbkBLCyjV2 4fkHX5YtoRtYxkv3CjzfMbUXSey9EV6Qc+Px/ZiyS1qSJhKPqoktjelPrGDqFDr8r9su BGD83nTKMMUO/56rz7119Q90JrzkE+y6JDEf01L+ZuIc2AFzo3bNWSDTo8aZ6IkGa6e9 CWOQ== X-Gm-Message-State: AAQBX9dRb1/YpXGDYoVNgOlI7OkGofX2YqQKwndPrisCBdhI8ijpersT wWExr9yD1SFyvRU6aCThykt/pKFds+OUV9hdnxdk2vJPN0KDO/D10zKy2g== X-Google-Smtp-Source: AKy350Y69QTfJVjsS9n1a+HdjixZqtajR5kCU0AKv/CDaiGQYLXjlBPzdUUUsg00xcWygeIYE7oFwL1o2YCdeBdg7vk= X-Received: by 2002:a67:d492:0:b0:42c:6fe9:bcee with SMTP id g18-20020a67d492000000b0042c6fe9bceemr4552982vsj.1.1681244014854; Tue, 11 Apr 2023 13:13:34 -0700 (PDT) MIME-Version: 1.0 References: <20230410160809.11e6747f@hermes.local> <20230411110259.5e1b40d6@hermes.local> In-Reply-To: <20230411110259.5e1b40d6@hermes.local> From: Dinesh Kumar Date: Tue, 11 Apr 2023 16:13:23 -0400 Message-ID: Subject: Re: How to use --vdev Options for ./dpdk-l3fwd? To: Stephen Hemminger Cc: users@dpdk.org Content-Type: multipart/alternative; boundary="000000000000495ee405f91520dd" X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org --000000000000495ee405f91520dd Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thank you for the clarification, however, I have not created any tap device by manual process and trying to create one by DPDK,let me know if I am missing anything in the parameter list. /dpdk-l3fwd --log-level *:debug -c f -n 4 --vdev=3Dnet_tap0 -- -p 0x3 --config=3D"(0,0,0),(0,1,1),(1,0,2)" *Here is the outcome for dpdk-devbind.py -s on my machine is there any other way to see the Tap devices created from DPDK.* Network devices using kernel driver =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 0000:00:03.0 'Virtio network device 1000' if=3Dens3 drv=3Dvirtio-pci unused=3Dvfio-pci,uio_pci_generic *Active* Other Network devices =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 0000:00:05.0 'Ethernet Virtual Function 700 Series 154c' unused=3Diavf,vfio-pci,uio_pci_generic 0000:00:06.0 'Ethernet Virtual Function 700 Series 154c' unused=3Diavf,vfio-pci,uio_pci_generic No 'Baseband' devices detected =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D No 'Crypto' devices detected =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D No 'DMA' devices detected =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D No 'Eventdev' devices detected =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D No 'Mempool' devices detected =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D No 'Compress' devices detected =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D Misc (rawdev) devices using kernel driver =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 0000:00:04.0 'Virtio block device 1001' drv=3Dvirtio-pci unused=3Dvfio-pci,uio_pci_generic No 'Regex' devices detected =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D On the details log it is failing at .*/dpdk-l3fwd --log-level *:debug -c f -n 4 --vdev=3Dnet_tap0 -- -p 0x3 --config=3D"(0,0,0),(0,1,1),(1,0,2)"* EAL: pmd.bb.turbo_sw log level changed from notice to debug EAL: Detected lcore 0 as core 0 on socket 0 EAL: Detected lcore 1 as core 0 on socket 0 EAL: Detected lcore 2 as core 0 on socket 0 EAL: Detected lcore 3 as core 0 on socket 0 EAL: Detected lcore 4 as core 0 on socket 0 EAL: Detected lcore 5 as core 0 on socket 0 EAL: Detected lcore 6 as core 0 on socket 0 EAL: Detected lcore 7 as core 0 on socket 0 EAL: Maximum logical cores by configuration: 128 EAL: Detected CPU lcores: 8 EAL: Detected NUMA nodes: 1 EAL: Checking presence of .so 'librte_eal.so.22.0' EAL: Checking presence of .so 'librte_eal.so.22' EAL: Checking presence of .so 'librte_eal.so' EAL: Detected static linkage of DPDK dpaa: rte_dpaa_bus_parse(): Parse device name (net_tap0) fslmc: rte_fslmc_parse(): Parsing dev=3D(net_tap0) *fslmc: rte_fslmc_parse(): Unknown or unsupported device (net_tap0)* EAL: Ask a virtual area of 0x7000 bytes EAL: Virtual area found at 0x100000000 (size =3D 0x7000) EAL: Multi-process socket /var/run/dpdk/rte/mp_socket auxiliary bus: /sys/bus/auxiliary/devices not found, is auxiliary module loaded? dpaa: rte_dpaa_bus_scan(): >> EAL: DPAA Bus not present. Skipping. fslmc: fslmc_get_container_group(): DPAA2: DPRC not available fslmc: rte_fslmc_scan(): FSLMC Bus Not Available. Skipping (-22) EAL: VFIO PCI modules not loaded EAL: Bus auxiliary wants IOVA as 'DC' EAL: Bus dpaa_bus wants IOVA as 'DC' EAL: Bus fslmc wants IOVA as 'DC' EAL: PCI driver net_iavf for device 0000:00:05.0 wants IOVA as 'PA' EAL: Bus pci wants IOVA as 'PA' EAL: Bus vdev wants IOVA as 'DC' EAL: Bus dsa wants IOVA as 'DC' EAL: Selected IOVA mode 'PA' EAL: No available 1048576 kB hugepages reported EAL: Probing VFIO support... EAL: IOMMU type 1 (Type 1) is supported EAL: IOMMU type 7 (sPAPR) is not supported EAL: IOMMU type 8 (No-IOMMU) is not supported EAL: VFIO support initialized EAL: Ask a virtual area of 0x2e000 bytes EAL: Virtual area found at 0x100007000 (size =3D 0x2e000) EAL: Setting up physically contiguous memory... EAL: Setting maximum number of open files to 1048576 EAL: Detected memory type: socket_id:0 hugepage_sz:2097152 EAL: Creating 4 segment lists: n_segs:8192 socket_id:0 hugepage_sz:2097152 EAL: Ask a virtual area of 0x61000 bytes EAL: Virtual area found at 0x100035000 (size =3D 0x61000) EAL: Memseg list allocated at socket 0, page size 0x800kB EAL: Ask a virtual area of 0x400000000 bytes EAL: Virtual area found at 0x100200000 (size =3D 0x400000000) EAL: VA reserved for memseg list at 0x100200000, size 400000000 EAL: Ask a virtual area of 0x61000 bytes EAL: Virtual area found at 0x500200000 (size =3D 0x61000) EAL: Memseg list allocated at socket 0, page size 0x800kB EAL: Ask a virtual area of 0x400000000 bytes EAL: Virtual area found at 0x500400000 (size =3D 0x400000000) EAL: VA reserved for memseg list at 0x500400000, size 400000000 EAL: Ask a virtual area of 0x61000 bytes EAL: Virtual area found at 0x900400000 (size =3D 0x61000) EAL: Memseg list allocated at socket 0, page size 0x800kB EAL: Ask a virtual area of 0x400000000 bytes EAL: Virtual area found at 0x900600000 (size =3D 0x400000000) EAL: VA reserved for memseg list at 0x900600000, size 400000000 EAL: Ask a virtual area of 0x61000 bytes EAL: Virtual area found at 0xd00600000 (size =3D 0x61000) EAL: Memseg list allocated at socket 0, page size 0x800kB EAL: Ask a virtual area of 0x400000000 bytes EAL: Virtual area found at 0xd00800000 (size =3D 0x400000000) EAL: VA reserved for memseg list at 0xd00800000, size 400000000 EAL: TSC frequency is ~2100000 KHz EAL: Main lcore 0 is ready (tid=3D7f74eeab7c00;cpuset=3D[0]) EAL: lcore 1 is ready (tid=3D7f74edab2400;cpuset=3D[1]) EAL: lcore 2 is ready (tid=3D7f74ed2b1400;cpuset=3D[2]) EAL: lcore 3 is ready (tid=3D7f74ecab0400;cpuset=3D[3]) EAL: Trying to obtain current memory policy. EAL: Setting policy MPOL_PREFERRED for socket 0 EAL: Restoring previous memory policy: 0 EAL: request: mp_malloc_sync EAL: Heap on socket 0 was expanded by 2MB EAL: PCI device 0000:00:03.0 on NUMA socket -1 EAL: probe driver: 1af4:1000 net_virtio EAL: Probe PCI driver: net_virtio (1af4:1000) device: 0000:00:03.0 (socket 0) EAL: Not managed by a supported kernel driver, skipped virtio_read_caps(): failed to map pci device! vtpci_init(): trying with legacy virtio pci. EAL: Not managed by a supported kernel driver, skipped vtpci_init(): skip kernel managed virtio device. eth_virtio_pci_init(): Failed to init PCI device EAL: Requested device 0000:00:03.0 cannot be used EAL: PCI device 0000:00:05.0 on NUMA socket -1 EAL: probe driver: 8086:154c net_iavf EAL: PCI memory mapped at 0x1100800000 EAL: PCI memory mapped at 0x1100810000 EAL: Probe PCI driver: net_iavf (8086:154c) device: 0000:00:05.0 (socket 0) iavf_dev_init(): >> iavf_set_mac_type iavf_set_mac_type found mac: 2, returns: 0 iavf_read_msg_from_pf(): Can't read msg from AQ iavf_read_msg_from_pf(): AQ from pf carries opcode 1, retval 0 iavf_check_api_version(): Peer is supported PF host iavf_read_msg_from_pf(): Can't read msg from AQ iavf_read_msg_from_pf(): AQ from pf carries opcode 3, retval 0 iavf_dev_alarm_handler(): ICR01_ADMINQ is reported iavf_handle_pf_event_msg(): VIRTCHNL_EVENT_LINK_CHANGE event iavf_handle_virtchnl_msg(): adminq response is received, opcode =3D 26 vdev_probe_all_drivers(): Search driver to probe device net_tap0 rte_pmd_tap_probe(): Initializing pmd_tap for net_tap0 eth_dev_tap_create(): TAP device on numa 0 tun_alloc(): /dev/net/tun Features 00007133 tun_alloc(): Multi-queue support for 16 queues tun_alloc(): Device name is 'dtap0' tun_alloc(): Using rt-signal 35 *eth_dev_tap_create(): allocated dtap0* EAL: lib.telemetry log level changed from disabled to debug TELEMETRY: Attempting socket bind to path '/var/run/dpdk/rte/dpdk_telemetry.v2' TELEMETRY: Socket creation and binding ok TELEMETRY: Telemetry initialized ok TELEMETRY: No legacy callbacks, legacy socket not created Neither LPM, EM, or FIB selected, defaulting to LPM Initializing port 0 ... Creating queues: nb_rxq=3D2 nb_txq=3D4... Port 0 modified RSS hash function based on hardware support,requested:0xa38c configured:0x238c iavf_dev_init_vlan(): Failed to update vlan offload *iavf_dev_configure(): configure VLAN failed: -95* iavf_dev_alarm_handler(): ICR01_ADMINQ is reported iavf_handle_virtchnl_msg(): adminq response is received, opcode =3D 24 iavf_dev_alarm_handler(): ICR01_ADMINQ is reported iavf_handle_virtchnl_msg(): adminq response is received, opcode =3D 23 iavf_dev_alarm_handler(): ICR01_ADMINQ is reported iavf_handle_virtchnl_msg(): adminq response is received, opcode =3D 25 iavf_dev_alarm_handler(): ICR01_ADMINQ is reported iavf_handle_virtchnl_msg(): adminq response is received, opcode =3D 26 Port 0 Rx offload RSS_HASH is not requested but enabled EAL: Trying to obtain current memory policy. EAL: Setting policy MPOL_PREFERRED for socket 0 EAL: alloc_seg(): mmap() failed: Cannot allocate memory EAL: Ask a virtual area of 0x200000 bytes EAL: Virtual area found at 0x100400000 (size =3D 0x200000) EAL: attempted to allocate 1 segments, but only 0 were allocated EAL: Restoring previous memory policy: 0 EAL: Error - exiting with code: 1 Cause: Cannot init mbuf pool on socket 0 On Tue, Apr 11, 2023 at 2:03=E2=80=AFPM Stephen Hemminger < stephen@networkplumber.org> wrote: > On Tue, 11 Apr 2023 12:51:54 -0400 > Dinesh Kumar wrote: > > > Hi Stephen , > > > > Thanks for your suggestions.I am able to resolve --vdev error however = I > am > > having another issue related to buffer. > > .*/dpdk-l3fwd -c f -n 4 --vdev=3Dnet_tap3 -- -p 0x3 > > --config=3D"(0,0,1),(0,1,2)"* > > EAL: Detected CPU lcores: 8 > > 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' > > EAL: No available 1048576 kB hugepages reported > > EAL: VFIO support initialized > > EAL: Probe PCI driver: net_virtio (1af4:1000) device: 0000:00:03.0 > (socket > > 0) > > eth_virtio_pci_init(): Failed to init PCI device > > EAL: Requested device 0000:00:03.0 cannot be used > > EAL: Probe PCI driver: net_iavf (8086:154c) device: 0000:00:05.0 (socke= t > 0) > > EAL: Probe PCI driver: net_iavf (8086:154c) device: 0000:00:06.0 (socke= t > 0) > > TELEMETRY: No legacy callbacks, legacy socket not created > > Neither LPM, EM, or FIB selected, defaulting to LPM > > Initializing port 0 ... Creating queues: nb_rxq=3D2 nb_txq=3D4... Port = 0 > > modified RSS hash function based on hardware support,requested:0xa38c > > configured:0x238c > > > > > > > > *iavf_dev_init_vlan(): Failed to update vlan offloadiavf_dev_configure(= ): > > configure VLAN failed: -95EAL: Error - exiting with code: 1 Cause: > Cannot > > init mbuf pool on socket 0* > > > > Do I need to update any parameters? > > Do I need to add a routing rule parameter? > > Any help /pointers will be really appreciated. > > FYI. I just want to testL3 forwarding via DPDK using the Tap interface > The > > flow is : > > On Vm1 .*/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 applicatio= n > > running on another VM2 and I am stuck with creation Tap interface on VM= 1 > > via * . > > */dpdk-l3fwd.* > > Regards, > > Dinesh Kumar > > > > > > > > On Mon, Apr 10, 2023 at 7:08=E2=80=AFPM Stephen Hemminger < > > stephen@networkplumber.org> wrote: > > > > > On Mon, 10 Apr 2023 18:47:59 -0400 > > > Dinesh Kumar wrote: > > > > > > > Hi There, > > > > I am new to the DPDK example and having issue with using --vdev > options > > > > for DPDK example and it is throwing the below error. > > > > > > > > ./dpdk-l3fwd --log-level *:debug -c f -n 4 -- -p 0x3 --vdev > > > > 'net_pcap0,rx_pcap=3Dinput.pcap,tx_pcap=3Doutput.pcap' > > > > > > > > ----------------------- > > > > iavf_check_api_version(): Peer is supported PF host > > > > iavf_read_msg_from_pf(): Can't read msg from AQ > > > > iavf_read_msg_from_pf(): AQ from pf carries opcode 3, retval 0 > > > > iavf_dev_alarm_handler(): ICR01_ADMINQ is reported > > > > iavf_handle_pf_event_msg(): VIRTCHNL_EVENT_LINK_CHANGE event > > > > iavf_handle_virtchnl_msg(): adminq response is received, opcode =3D= 26 > > > > EAL: lib.telemetry log level changed from disabled to debug > > > > TELEMETRY: Attempting socket bind to path > > > > '/var/run/dpdk/rte/dpdk_telemetry.v2' > > > > TELEMETRY: Socket creation and binding ok > > > > TELEMETRY: Telemetry initialized ok > > > > TELEMETRY: No legacy callbacks, legacy socket not created > > > > *./dpdk-l3fwd: unrecognized option '--vdev'* > > > > ./dpdk-l3fwd [EAL options] -- -p PORTMASK [-P] [--lookup] --config > > > > (port,queue,lcore)[,(port,queue,lcore)] [--rx-queue-size NPKTS] > > > > [--tx-queue-size NPKTS] [--eth-dest=3DX,MM:MM:MM:MM:MM:MM] > [--max-pkt-len > > > > PKTLEN] [--no-numa] [--hash-entry-num] [--ipv6] [--parse-ptype] > > > > [--per-port-pool] [--mode] [--eventq-sched] [--event-vector > > > > [--event-vector-size SIZE] [--event-vector-tmo NS]] [-E] [-L] > > > > > > > > please let me know if I am missing some options that need to be > added > > > with > > > > --vdev > > > > > > > > > DPDK options are split into the options for the DPDK infrastructure > (EAL) > > > and those > > > used by the applications. They are separated by the -- option. > > > > > > In your example, the vdev option belongs to the DPDK infrastructure n= ot > > > the application. > > > Put it it before the -- and it should work > > > > > I think you are assuming that the DPDK tap device is for using an > existing tap device. That is not correct. > The DPDK tap interface makes a tap device for its use. > --000000000000495ee405f91520dd Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thank you for the clarification,=C2=A0however,=C2=A0I have= not created any tap device by manual process and trying to create one by D= PDK,let me know if I am missing anything=C2=A0in the parameter list.
/dpdk-l3fwd =C2=A0--log-level *:debug -c f -n 4 --vdev=3Dnet_t= ap0 -- -p 0x3 --config=3D"(0,0,0),(0,1,1),(1,0,2)"

Here= is the=C2=A0outcome=C2=A0for=C2=A0=C2=A0dpdk-devbind.py -s on my machine i= s there any other way to see the Tap devices created from DPDK.

= Network devices using kernel driver
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
00= 00:00:03.0 'Virtio network device 1000' if=3Dens3 drv=3Dvirtio-pci = unused=3Dvfio-pci,uio_pci_generic *Active*

Other Network devices
= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
0000:00:= 05.0 'Ethernet Virtual Function 700 Series 154c' unused=3Diavf,vfio= -pci,uio_pci_generic
0000:00:06.0 'Ethernet Virtual Function 700 Ser= ies 154c' unused=3Diavf,vfio-pci,uio_pci_generic

No 'Baseban= d' devices detected
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

No 'Crypto' devic= es detected
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D

No 'DMA' devices detected
=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
No 'Eventdev' devices detected
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

No '= ;Mempool' devices detected
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

No 'Compress= 9; devices detected
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

Misc (rawdev) devices using = kernel driver
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
0000:= 00:04.0 'Virtio block device 1001' drv=3Dvirtio-pci unused=3Dvfio-p= ci,uio_pci_generic

No 'Regex' devices detected
=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
On the details log it is failing=C2=A0at

./dpdk-l3fwd = =C2=A0--log-level *:debug -c f -n 4 --vdev=3Dnet_tap0 -- -p 0x3 --config=3D= "(0,0,0),(0,1,1),(1,0,2)"


=C2=A0= EAL: pmd.bb.turbo_sw log level changed from notice to debug
EAL: Detec= ted lcore 0 as core 0 on socket 0
EAL: Detected lcore 1 as core 0 on soc= ket 0
EAL: Detected lcore 2 as core 0 on socket 0
EAL: Detected lcore= 3 as core 0 on socket 0
EAL: Detected lcore 4 as core 0 on socket 0
= EAL: Detected lcore 5 as core 0 on socket 0
EAL: Detected lcore 6 as cor= e 0 on socket 0
EAL: Detected lcore 7 as core 0 on socket 0
EAL: Maxi= mum logical cores by configuration: 128
EAL: Detected CPU lcores: 8
E= AL: Detected NUMA nodes: 1
EAL: Checking presence of .so 'librte_eal= .so.22.0'
EAL: Checking presence of .so 'librte_eal.so.22'EAL: Checking presence of .so 'librte_eal.so'
EAL: Detected st= atic linkage of DPDK
dpaa: rte_dpaa_bus_parse(): Parse device name (net_= tap0)
fslmc: rte_fslmc_parse(): Parsing dev=3D(net_tap0)
fslmc: rte_fslmc_parse(): Unknown or unsupported device (net= _tap0)
EAL: Ask a virtual area of 0x7000 bytes
EAL: Virtua= l area found at 0x100000000 (size =3D 0x7000)
EAL: Multi-process socket = /var/run/dpdk/rte/mp_socket
auxiliary bus: /sys/bus/auxiliary/devices no= t found, is auxiliary module loaded?
dpaa: rte_dpaa_bus_scan(): =C2=A0&g= t;>
EAL: DPAA Bus not present. Skipping.
fslmc: fslmc_get_containe= r_group(): DPAA2: DPRC not available
fslmc: rte_fslmc_scan(): FSLMC Bus = Not Available. Skipping (-22)
EAL: VFIO PCI modules not loaded
EAL: B= us auxiliary wants IOVA as 'DC'
EAL: Bus dpaa_bus wants IOVA as = 'DC'
EAL: Bus fslmc wants IOVA as 'DC'
EAL: PCI drive= r net_iavf for device 0000:00:05.0 wants IOVA as 'PA'
EAL: Bus p= ci wants IOVA as 'PA'
EAL: Bus vdev wants IOVA as 'DC'EAL: Bus dsa wants IOVA as 'DC'
EAL: Selected IOVA mode 'P= A'
EAL: No available 1048576 kB hugepages reported
EAL: Probing V= FIO support...
EAL: IOMMU type 1 (Type 1) is supported
EAL: IOMMU typ= e 7 (sPAPR) is not supported
EAL: IOMMU type 8 (No-IOMMU) is not support= ed
EAL: VFIO support initialized
EAL: Ask a virtual area of 0x2e000 b= ytes
EAL: Virtual area found at 0x100007000 (size =3D 0x2e000)
EAL: S= etting up physically contiguous memory...
EAL: Setting maximum number of= open files to 1048576
EAL: Detected memory type: socket_id:0 hugepage_s= z:2097152
EAL: Creating 4 segment lists: n_segs:8192 socket_id:0 hugepag= e_sz:2097152
EAL: Ask a virtual area of 0x61000 bytes
EAL: Virtual ar= ea found at 0x100035000 (size =3D 0x61000)
EAL: Memseg list allocated at= socket 0, page size 0x800kB
EAL: Ask a virtual area of 0x400000000 byte= s
EAL: Virtual area found at 0x100200000 (size =3D 0x400000000)
EAL: = VA reserved for memseg list at 0x100200000, size 400000000
EAL: Ask a vi= rtual area of 0x61000 bytes
EAL: Virtual area found at 0x500200000 (size= =3D 0x61000)
EAL: Memseg list allocated at socket 0, page size 0x800kB<= br>EAL: Ask a virtual area of 0x400000000 bytes
EAL: Virtual area found = at 0x500400000 (size =3D 0x400000000)
EAL: VA reserved for memseg list a= t 0x500400000, size 400000000
EAL: Ask a virtual area of 0x61000 bytesEAL: Virtual area found at 0x900400000 (size =3D 0x61000)
EAL: Memseg = list allocated at socket 0, page size 0x800kB
EAL: Ask a virtual area of= 0x400000000 bytes
EAL: Virtual area found at 0x900600000 (size =3D 0x40= 0000000)
EAL: VA reserved for memseg list at 0x900600000, size 400000000=
EAL: Ask a virtual area of 0x61000 bytes
EAL: Virtual area found at = 0xd00600000 (size =3D 0x61000)
EAL: Memseg list allocated at socket 0, p= age size 0x800kB
EAL: Ask a virtual area of 0x400000000 bytes
EAL: Vi= rtual area found at 0xd00800000 (size =3D 0x400000000)
EAL: VA reserved = for memseg list at 0xd00800000, size 400000000
EAL: TSC frequency is ~21= 00000 KHz
EAL: Main lcore 0 is ready (tid=3D7f74eeab7c00;cpuset=3D[0])EAL: lcore 1 is ready (tid=3D7f74edab2400;cpuset=3D[1])
EAL: lcore 2 i= s ready (tid=3D7f74ed2b1400;cpuset=3D[2])
EAL: lcore 3 is ready (tid=3D7= f74ecab0400;cpuset=3D[3])
EAL: Trying to obtain current memory policy.EAL: Setting policy MPOL_PREFERRED for socket 0
EAL: Restoring previou= s memory policy: 0
EAL: request: mp_malloc_sync
EAL: Heap on socket 0= was expanded by 2MB
EAL: PCI device 0000:00:03.0 on NUMA socket -1
E= AL: =C2=A0 probe driver: 1af4:1000 net_virtio
EAL: Probe PCI driver: net= _virtio (1af4:1000) device: 0000:00:03.0 (socket 0)
EAL: =C2=A0 Not mana= ged by a supported kernel driver, skipped
virtio_read_caps(): failed to = map pci device!
vtpci_init(): trying with legacy virtio pci.
EAL: =C2= =A0 Not managed by a supported kernel driver, skipped
vtpci_init(): skip= kernel managed virtio device.
eth_virtio_pci_init(): Failed to init PCI= device
EAL: Requested device 0000:00:03.0 cannot be used
EAL: PCI de= vice 0000:00:05.0 on NUMA socket -1
EAL: =C2=A0 probe driver: 8086:154c = net_iavf
EAL: =C2=A0 PCI memory mapped at 0x1100800000
EAL: =C2=A0 PC= I memory mapped at 0x1100810000
EAL: Probe PCI driver: net_iavf (8086:15= 4c) device: 0000:00:05.0 (socket 0)
iavf_dev_init(): =C2=A0>>
i= avf_set_mac_type

iavf_set_mac_type found mac: 2, returns: 0
iavf_= read_msg_from_pf(): Can't read msg from AQ
iavf_read_msg_from_pf(): = AQ from pf carries opcode 1, retval 0
iavf_check_api_version(): Peer is = supported PF host
iavf_read_msg_from_pf(): Can't read msg from AQiavf_read_msg_from_pf(): AQ from pf carries opcode 3, retval 0
iavf_dev= _alarm_handler(): ICR01_ADMINQ is reported
iavf_handle_pf_event_msg(): V= IRTCHNL_EVENT_LINK_CHANGE event
iavf_handle_virtchnl_msg(): adminq respo= nse is received, opcode =3D 26
vdev_probe_all_drivers(): Search driver t= o probe device net_tap0
rte_pmd_tap_probe(): Initializing pmd_tap for ne= t_tap0
eth_dev_tap_create(): TAP device on numa 0
tun_alloc(): /dev/n= et/tun Features 00007133
tun_alloc(): =C2=A0 Multi-queue support for 16 = queues
tun_alloc(): Device name is 'dtap0'
tun_alloc(): Using= rt-signal 35
eth_dev_tap_create(): allocated dtap0
EAL: lib.t= elemetry log level changed from disabled to debug
TELEMETRY: Attempting = socket bind to path '/var/run/dpdk/rte/dpdk_telemetry.v2'
TELEME= TRY: Socket creation and binding ok
TELEMETRY: Telemetry initialized ok<= br>TELEMETRY: No legacy callbacks, legacy socket not created
Neither LPM= , EM, or FIB selected, defaulting to LPM
Initializing port 0 ... Creatin= g queues: nb_rxq=3D2 nb_txq=3D4... Port 0 modified RSS hash function based = on hardware support,requested:0xa38c configured:0x238c
iavf_dev_init_vla= n(): Failed to update vlan offload
iavf_dev_c= onfigure(): configure VLAN failed: -95
iavf_dev_alarm_handler= (): ICR01_ADMINQ is reported
iavf_handle_virtchnl_msg(): adminq response= is received, opcode =3D 24
iavf_dev_alarm_handler(): ICR01_ADMINQ is re= ported
iavf_handle_virtchnl_msg(): adminq response is received, opcode = =3D 23
iavf_dev_alarm_handler(): ICR01_ADMINQ is reported
iavf_handle= _virtchnl_msg(): adminq response is received, opcode =3D 25
iavf_dev_ala= rm_handler(): ICR01_ADMINQ is reported
iavf_handle_virtchnl_msg(): admin= q response is received, opcode =3D 26
Port 0 Rx offload RSS_HASH is not = requested but enabled
EAL: Trying to obtain current memory policy.
EA= L: Setting policy MPOL_PREFERRED for socket 0
EAL: alloc_seg(): mmap() f= ailed: Cannot allocate memory
EAL: Ask a virtual area of 0x200000 bytes<= br>EAL: Virtual area found at 0x100400000 (size =3D 0x200000)
EAL: attem= pted to allocate 1 segments, but only 0 were allocated
EAL: Restoring pr= evious memory policy: 0
EAL: Error - exiting with code: 1
=C2=A0 Caus= e: Cannot init mbuf pool on socket 0

On Tue, Apr 11, 2023 at 2:03= =E2=80=AFPM Stephen Hemminger <stephen@networkplumber.org> wrote:
On Tue, 11 Apr 2023 12:51:54 -0400
Dinesh Kumar <= raidinesh@utexas.edu> wrote:

> Hi Stephen ,
>
> Thanks for your suggestions.I am able to resolve --vdev error=C2=A0 ho= wever I am
> having another issue related to buffer.
> .*/dpdk-l3fwd -c f -n 4 --vdev=3Dnet_tap3 -- -p 0x3
> --config=3D"(0,0,1),(0,1,2)"*
> EAL: Detected CPU lcores: 8
> 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'
> EAL: No available 1048576 kB hugepages reported
> EAL: VFIO support initialized
> EAL: Probe PCI driver: net_virtio (1af4:1000) device: 0000:00:03.0 (so= cket
> 0)
> eth_virtio_pci_init(): Failed to init PCI device
> EAL: Requested device 0000:00:03.0 cannot be used
> EAL: Probe PCI driver: net_iavf (8086:154c) device: 0000:00:05.0 (sock= et 0)
> EAL: Probe PCI driver: net_iavf (8086:154c) device: 0000:00:06.0 (sock= et 0)
> TELEMETRY: No legacy callbacks, legacy socket not created
> Neither LPM, EM, or FIB selected, defaulting to LPM
> Initializing port 0 ... Creating queues: nb_rxq=3D2 nb_txq=3D4... Port= 0
> modified RSS hash function based on hardware support,requested:0xa38c<= br> > configured:0x238c
>
>
>
> *iavf_dev_init_vlan(): Failed to update vlan offloadiavf_dev_configure= ():
> configure VLAN failed: -95EAL: Error - exiting with code: 1=C2=A0 Caus= e: Cannot
> init mbuf pool on socket 0*
>
> Do I need to update any parameters?
> Do I need to add a routing rule parameter?
> Any help /pointers will be really appreciated.
> FYI. I just want to testL3=C2=A0 forwarding via DPDK using the Tap int= erface The
> flow is :
> On Vm1 .*/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 applicati= on
> running on another VM2 and I am stuck with creation Tap interface on V= M1
> via *=C2=A0 .
> */dpdk-l3fwd.*
> Regards,
> Dinesh Kumar
>
>
>
> On Mon, Apr 10, 2023 at 7:08=E2=80=AFPM Stephen Hemminger <
> stephe= n@networkplumber.org> wrote:=C2=A0
>
> > On Mon, 10 Apr 2023 18:47:59 -0400
> > Dinesh Kumar <raidinesh@utexas.edu> wrote:
> >=C2=A0
> > > Hi There,
> > > I am new to the DPDK example and having issue with using=C2= =A0 --vdev options
> > > for DPDK example and it is throwing the below error.
> > >
> > > ./dpdk-l3fwd --log-level *:debug -c f -n 4 -- -p 0x3 --vdev<= br> > > > 'net_pcap0,rx_pcap=3Dinput.pcap,tx_pcap=3Doutput.pcap= 9;
> > >
> > > -----------------------
> > > iavf_check_api_version(): Peer is supported PF host
> > > iavf_read_msg_from_pf(): Can't read msg from AQ
> > > iavf_read_msg_from_pf(): AQ from pf carries opcode 3, retval= 0
> > > iavf_dev_alarm_handler(): ICR01_ADMINQ is reported
> > > iavf_handle_pf_event_msg(): VIRTCHNL_EVENT_LINK_CHANGE event=
> > > iavf_handle_virtchnl_msg(): adminq response is received, opc= ode =3D 26
> > > EAL: lib.telemetry log level changed from disabled to debug<= br> > > > TELEMETRY: Attempting socket bind to path
> > > '/var/run/dpdk/rte/dpdk_telemetry.v2'
> > > TELEMETRY: Socket creation and binding ok
> > > TELEMETRY: Telemetry initialized ok
> > > TELEMETRY: No legacy callbacks, legacy socket not created > > > *./dpdk-l3fwd: unrecognized option '--vdev'*
> > > ./dpdk-l3fwd [EAL options] -- -p PORTMASK [-P] [--lookup] --= config
> > > (port,queue,lcore)[,(port,queue,lcore)] [--rx-queue-size NPK= TS]
> > > [--tx-queue-size NPKTS] [--eth-dest=3DX,MM:MM:MM:MM:MM:MM] [= --max-pkt-len
> > > PKTLEN] [--no-numa] [--hash-entry-num] [--ipv6] [--parse-pty= pe]
> > > [--per-port-pool] [--mode] [--eventq-sched] [--event-vector<= br> > > > [--event-vector-size SIZE] [--event-vector-tmo NS]] [-E] [-L= ]
> > >
> > > please let me know if I am missing some options that need to= be added=C2=A0
> > with=C2=A0
> > > --vdev=C2=A0
> >
> >
> > DPDK options are split into the options for the DPDK infrastructu= re (EAL)
> > and those
> > used by the applications. They are separated by the -- option. > >
> > In your example, the vdev option belongs to the DPDK infrastructu= re not
> > the application.
> > Put it it before the -- and it should work
> >=C2=A0

I think you are assuming that the DPDK tap device is for using an
existing tap device. That is not correct.
The DPDK tap interface makes a tap device for its use.
--000000000000495ee405f91520dd--