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 12B64A04A4; Tue, 26 May 2020 11:14:09 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D8B5C1DA36; Tue, 26 May 2020 11:14:08 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id 701CF1DA2F for ; Tue, 26 May 2020 11:14:07 +0200 (CEST) IronPort-SDR: /K2OH2Lv30ZZhN3ueSrtrhhz/ttQzf4qpsrtTWZQrzDen6mHX6RbduTcjnnif0pdsVoL82UvN/ 4tIsF3Jf1f6g== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 May 2020 02:14:06 -0700 IronPort-SDR: rEmleWKDLhmutM8ydR0fi0PwPQO7oXl7gStUgo3i2h6c2BEmdYadM62EVejAkWvbWe4SiAyBp1 RvmP7LoO+lZg== X-IronPort-AV: E=Sophos;i="5.73,436,1583222400"; d="scan'208";a="468225193" Received: from bricha3-mobl.ger.corp.intel.com ([10.251.86.146]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-SHA; 26 May 2020 02:14:05 -0700 Date: Tue, 26 May 2020 10:14:02 +0100 From: Bruce Richardson To: Deepak Gowda Cc: dev@dpdk.org Message-ID: <20200526091402.GA905@bricha3-MOBL.ger.corp.intel.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [dpdk-dev] xdp_umem_configure(): Failed to create umem X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Tue, May 26, 2020 at 11:27:10AM +0530, Deepak Gowda wrote: > Hi All, > > I'm fairly new to xdp, i'm trying to run the testpmd with af_xdp. I have > checked all the prerequisites for af_xdp. > I see testpmd exiting with the following error, > ./testpmd -c 0x3 -n 4 --vdev net_af_xdp0,iface=tap0 -- -i > EAL: Detected 8 lcore(s) > EAL: Detected 1 NUMA nodes > EAL: Multi-process socket /var/run/dpdk/rte/mp_socket > EAL: Selected IOVA mode 'PA' > EAL: Probing VFIO support... > EAL: PCI device 0000:00:03.0 on NUMA socket -1 > EAL: Invalid NUMA socket, default to 0 > EAL: probe driver: 1af4:1000 net_virtio > EAL: PCI device 0000:00:0a.0 on NUMA socket -1 > EAL: Invalid NUMA socket, default to 0 > EAL: probe driver: 1af4:1000 net_virtio > Interactive-mode selected > 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) > *xdp_umem_configure(): Failed to create umemeth_rx_queue_setup(): Failed to > configure xdp socket* > Fail to configure port 0 rx queues > EAL: Error - exiting with code: 1 > Cause: Start ports failed > > Seems like xsk_umem__create() is failing, could this be a kernel issue? > Before going further i wanted to confirm that my setup is fine and that > there are no obvious mistakes, here is my setup details: > debian buster kvm machine > 4.19.0-9-amd64 kernel > iface argument is a tap interface > dpdk-stable-19.11.2 > While I can't comment on the specific root cause of the issue you are seeing, 4.19 is quite an old kernel for working with AF_XDP, since numerous improvements and enhancements e.g. zero-copy support, have gone into the kernel since then. I would generally recommend using a 5.4 or newer kernel if working with AF_XDP. /Bruce