From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 8DAABA00E6 for ; Tue, 9 Jul 2019 00:09:58 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 72C891B9A0; Tue, 9 Jul 2019 00:09:58 +0200 (CEST) Received: from mail-wm1-f68.google.com (mail-wm1-f68.google.com [209.85.128.68]) by dpdk.org (Postfix) with ESMTP id ED505322C for ; Mon, 8 Jul 2019 13:18:26 +0200 (CEST) Received: by mail-wm1-f68.google.com with SMTP id v15so4976384wml.0 for ; Mon, 08 Jul 2019 04:18:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=+tjJ5IZ3PteoYMOxXwqCuKOpNTulerfspAyy1FxenH8=; b=RwBwEgaujLoF/YNnHN0mD7Jv49m8K5rV8SaTtkB+DHppBB0p3Mtn/87b3jWl1fZDuO +lk2Wk9hq6tzuMPZXFxsmV+jrPGbf5ydECEFGS18br6Hq9MRQCwZ3k4cnH2afyt5YArl l4R0P4GwCTx+4A9FkFvX2AYUikSZuHtJXKF9cjTC6XRAxqnUa2H36IbsfYNB+/yG0DoZ vjB3r95eP96KeT7Van3Bqk0Jehe15XhMUp2XCR1Iq5UNP6WlxmnP+di2zm4Ji+5gac+3 4oKDYFE4Wm+mUTUd8/KP7jHuOo0UsyLcmc3f5yZUs+msSbLnY2N6SV/aBlKLhEto1//p G6yA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=+tjJ5IZ3PteoYMOxXwqCuKOpNTulerfspAyy1FxenH8=; b=KNWeHuz/tGAf1TeF35YEjXplj9fmqeEOz25qAIhDHSWR+nuI9yabofTruNVNwMmH5L FLDke8JS+rYCdMEJfWWvvUnKT2KyHvQFebIgcwROPnCPDo5HUE1B56tvuyFgD+L+Ww6d GXU/UeScc9lrpCH7+kocTg/WGjGdHDmSJBH93aki2rGs1e7gZMj7hfkeMwpeaM0B8jTB 9Bf+CFlSTrgHDVqpbqJC/gqFpwbYhpz54+7khuegEZipEgMzLNH+rFH2hlmPXSMhw8Rh n0chhn+LqKtixDpLaKBuxzx+FfdhWFkHQiZSGtnyFPoSj6+ocOEkwQCGpdoF61G+iHWT 5Y2g== X-Gm-Message-State: APjAAAUQPZ/xa0IMpsdrELqLUoOYWgh9NjmHAja6WFTbQkzGqsgtJqzF EquKzWBUqpwOIQGpO3eJpAI12K0JAih8cxy74SCnqRbYDEw= X-Google-Smtp-Source: APXvYqxMJh9zvB5XL1T/veKMCjE6kvJjvPmeFrMG76QDVN5Ja1WR+O6ff+ETn5nl/KvxziA3SlLjsLVZ7j1ly86fI+g= X-Received: by 2002:a1c:7a02:: with SMTP id v2mr16448750wmc.159.1562584706131; Mon, 08 Jul 2019 04:18:26 -0700 (PDT) MIME-Version: 1.0 From: Jags N Date: Mon, 8 Jul 2019 16:48:14 +0530 Message-ID: To: users@dpdk.org X-Mailman-Approved-At: Tue, 09 Jul 2019 00:09:57 +0200 Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-users] only one vdev net_af_xdp being recognized X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org Sender: "users" Hi, I am trying to understand net_af_xdp, and find that dpdk is recognizing only one vdev net_af_xdp, hence only one port (port 0) is getting configured. Requesting help to know if I am missing any information on net_af_xdp support in dpdk, or if I have provided the EAL parameters wrong. Kindly advice. I am running Fedora 30.1-2 as Guest VM on Virtual Box VM Manager with Linux Kernel 5.1.0, and dpdk-19.05. The interfaces are emulated ones mentioned below, lspci output ... 00:09.0 Ethernet controller: Intel Corporation 82545EM Gigabit Ethernet Controller (Copper) (rev 02) 00:0a.0 Ethernet controller: Intel Corporation 82545EM Gigabit Ethernet Controller (Copper) (rev 02) DPDK testpmd is executed as mentioned below, [root@localhost app]# ./testpmd -c 0x3 -n 4 --vdev net_af_xdp,iface=enp0s9 --vdev net_af_xdp,iface=enp0s10 --iova-mode=va -- --portmask=0x3 EAL: Detected 3 lcore(s) EAL: Detected 1 NUMA nodes EAL: Multi-process socket /var/run/dpdk/rte/mp_socket EAL: Probing VFIO support... EAL: WARNING: cpu flags constant_tsc=no nonstop_tsc=no -> using unreliable clock cycles ! EAL: PCI device 0000:00:03.0 on NUMA socket -1 EAL: Invalid NUMA socket, default to 0 EAL: probe driver: 8086:100e net_e1000_em EAL: PCI device 0000:00:08.0 on NUMA socket -1 EAL: Invalid NUMA socket, default to 0 EAL: probe driver: 8086:100e net_e1000_em EAL: PCI device 0000:00:09.0 on NUMA socket -1 EAL: Invalid NUMA socket, default to 0 EAL: probe driver: 8086:100f net_e1000_em EAL: PCI device 0000:00:0a.0 on NUMA socket -1 EAL: Invalid NUMA socket, default to 0 EAL: probe driver: 8086:100f net_e1000_em testpmd: create a new mbuf pool : n=155456, size=2176, socket=0 testpmd: preferred mempool ops selected: ring_mp_mc Warning! port-topology=paired and odd forward ports number, the last port will pair with itself. Configuring Port 0 (socket 0) Port 0: 08:00:27:68:5B:66 Checking link statuses... Done No commandline core given, start packet forwarding io packet forwarding - ports=1 - cores=1 - streams=1 - NUMA support enabled, MP allocation mode: native Logical Core 1 (socket 0) forwards packets on 1 streams: RX P=0/Q=0 (socket 0) -> TX P=0/Q=0 (socket 0) peer=02:00:00:00:00:00 io packet forwarding packets/burst=32 nb forwarding cores=1 - nb forwarding ports=1 port 0: RX queue number: 1 Tx queue number: 1 Rx offloads=0x0 Tx offloads=0x0 RX queue: 0 RX desc=0 - RX free threshold=0 RX threshold registers: pthresh=0 hthresh=0 wthresh=0 RX Offloads=0x0 TX queue: 0 TX desc=0 - TX free threshold=0 TX threshold registers: pthresh=0 hthresh=0 wthresh=0 TX offloads=0x0 - TX RS bit threshold=0 Press enter to exit Telling cores to stop... Waiting for lcores to finish... ---------------------- Forward statistics for port 0 ---------------------- RX-packets: 0 RX-dropped: 0 RX-total: 0 TX-packets: 0 TX-dropped: 0 TX-total: 0 ---------------------------------------------------------------------------- +++++++++++++++ Accumulated forward statistics for all ports+++++++++++++++ RX-packets: 0 RX-dropped: 0 RX-total: 0 TX-packets: 0 TX-dropped: 0 TX-total: 0 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Done. Stopping port 0... Stopping ports... Done Shutting down port 0... Closing ports... Done Bye... Regards, Jags