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 B159BA00E6 for ; Thu, 11 Jul 2019 08:18:33 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E6775322C; Thu, 11 Jul 2019 08:18:32 +0200 (CEST) Received: from mail-wm1-f65.google.com (mail-wm1-f65.google.com [209.85.128.65]) by dpdk.org (Postfix) with ESMTP id 627EB2E81 for ; Thu, 11 Jul 2019 08:18:31 +0200 (CEST) Received: by mail-wm1-f65.google.com with SMTP id z23so218699wma.4 for ; Wed, 10 Jul 2019 23:18:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=PX5LRrfJ1JbkYaBJk61OsCFZlUCDORNQaI1/DKiRfjM=; b=vSjK5pcVsItk2y01eXSLRVXxgjweZFWxXISLGLT4XxQtj3pzlwdBvDpgmmUXPOtAR2 00Y5CAo9FAuqMKZckspV9chuNV04DwM1tGB/NDvfv1Q+dok8f8YQNvAqCy0GrC7LGiE+ Y9oRN1W5lFD/0UveY/Jup1cNXQu7+O61t98Yj+fJXdTHE6Cd6sGboAqnpw619t55cBHy UZ6hDIfR0kuVt2ARtTKC+MwGkm15uZws1CYI0TxO2xdoR87e/vwZKAhEpHInCoGuz1uM jbXIYFpdo/bbiWYsF07ixpWy4ZAqu28VAZFXS1GV7gmVvj49eqy0rZ0V9A8gbifWHFvu kTiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=PX5LRrfJ1JbkYaBJk61OsCFZlUCDORNQaI1/DKiRfjM=; b=eAfnLEad25XyQ7igE6L2LmmjVTurrZu1bdYraGjcth7VfV+BUYKEkvpwgPhd/9liIo 9QL7hioqiWCoEn2pRc8ExrHy6MuW7BaHQfeNrTei+GwDYKXwsjB9SVK95BNfksP+XVKb yf8oKqXPHm5wlhYgeKo/SF7HEtXi0iHJU8MASrDXymLXF92oIW7QLeveTnDcmfirDvPj lXMYndHNbn3/6MxwgJ7fvpXGQOddcZJOJ4ZjSw9x7AHgHV94CLnMA7I8UesEFJXMLzZJ 3kq2QPTY41D90D+JYS7uumq1c2fBaxlyInq36wtUst1pr/LtqmEPev1WXHoLtfMMGxJ6 /Ptw== X-Gm-Message-State: APjAAAWz8jtEY/wcj7rwecq9Uzvi8E1CN+s+MEC6yHZ+iZLC2crEL5QG nzX3gE8R3OrT9AUoensVKqSqoZ3OK+C8DPIH8WM= X-Google-Smtp-Source: APXvYqwlZ3Jb3OCS+ryw7ei2GqPO1ALjOFjijfE53sOXCP/tDRAfJ1rL6kub3Tk4ze/VZmq3sSPHcCw/TU8fCylmscY= X-Received: by 2002:a7b:cb94:: with SMTP id m20mr1921855wmi.144.1562825910855; Wed, 10 Jul 2019 23:18:30 -0700 (PDT) MIME-Version: 1.0 References: <20190710085926.GA24200@intel.com> <20190711091502.GA39155@intel.com> In-Reply-To: <20190711091502.GA39155@intel.com> From: Jags N Date: Thu, 11 Jul 2019 11:48:19 +0530 Message-ID: To: Ye Xiaolong Cc: users@dpdk.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [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 do check for "ip link list" and turn off the xdp with "ip link set dev xdp off". Even had confirmed with bpftool for any residue map before executing testpmd. [root@localhost app]# bpftool map 15: lpm_trie flags 0x1 key 8B value 8B max_entries 1 memlock 4096B 16: lpm_trie flags 0x1 key 20B value 8B max_entries 1 memlock 4096B 17: lpm_trie flags 0x1 key 8B value 8B max_entries 1 memlock 4096B 18: lpm_trie flags 0x1 key 20B value 8B max_entries 1 memlock 4096B 19: lpm_trie flags 0x1 key 8B value 8B max_entries 1 memlock 4096B 20: lpm_trie flags 0x1 key 20B value 8B max_entries 1 memlock 4096B [root@localhost app]# Another observation was that the first vdev in the EAL argument sequence comes up. Say, if I swap enp0s9 and enp0s10, then the Port 0 succeeds with xdp socket on enp0s10, and Port 1 fails to create xdp socket on enp0s9. So basically only the first vdev succeeds in xdp socket creation. With EAL argument : --vdev net_af_xdp0,iface=enp0s9 --vdev net_af_xdp1,iface=enp0s10 4: enp0s9: mtu 1500 xdpgeneric qdisc fq_codel state UP mode DEFAULT group default qlen 1000 link/ether 08:00:27:68:5b:66 brd ff:ff:ff:ff:ff:ff prog/xdp id 47 tag 688894a68871a50f jited 5: enp0s10: mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000 link/ether 08:00:27:6f:f4:61 brd ff:ff:ff:ff:ff:ff With EAL argument : --vdev net_af_xdp0,iface=enp0s10 --vdev net_af_xdp1,iface=enp0s9 4: enp0s9: mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000 link/ether 08:00:27:68:5b:66 brd ff:ff:ff:ff:ff:ff 5: enp0s10: mtu 1500 xdpgeneric qdisc fq_codel state UP mode DEFAULT group default qlen 1000 link/ether 08:00:27:6f:f4:61 brd ff:ff:ff:ff:ff:ff prog/xdp id 46 tag 688894a68871a50f jited Let me check further. Regards, Jagdish On Thu, Jul 11, 2019 at 8:03 AM Ye Xiaolong wrote: > Hi, > > On 07/11, Jags N wrote: > >Hi Xiaolong, > > > >Thanks much ! That works. > > > >I am now facing - xsk_configure(): Failed to create xsk socket. > > > >Port 0 is fine, Port 1 is showing the problem. > > Has port 1 been brought up? > Another reason may be that you've run with port 1 before, and somehow it > left > without proper cleanup of the xdp program (you can verfy it by `./bpftool > map -p` > to see whether there is existed xskmap, you can build the bpftool in > tools/bpf/bpftool) > you can try reboot your system and try again. > > Thanks, > Xiaolong > > > > >I am checking "tools/lib/bpf/xsk.c:xsk_socket__create()" further on this. > >Meanwhile just asking if any obvious reasons, if I am missing anything ? > > > >[root@localhost app]# ./testpmd -c 0x3 -n 4 --vdev > > net_af_xdp0,iface=enp0s9 --vdev net_af_xdp1,iface=enp0s10 --iova-mode=va > >EAL: Detected 3 lcore(s) > >EAL: Detected 1 NUMA nodes > >EAL: Multi-process socket /var/run/dpdk/rte/mp_socket > >EAL: Debug dataplane logs available - lower performance > >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 > >Configuring Port 0 (socket 0) > >Port 0: 08:00:27:68:5B:66 > >Configuring Port 1 (socket 0) > >xsk_configure(): Failed to create xsk socket. > >eth_rx_queue_setup(): Failed to configure xdp socket > >Fail to configure port 1 rx queues > >EAL: Error - exiting with code: 1 > > Cause: Start ports failed > >[root@localhost app]# > > > >Regards, > >Jags > > > >