DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] xdp_umem_configure(): Failed to create umem
@ 2020-05-26  5:57 Deepak Gowda
  2020-05-26  9:14 ` Bruce Richardson
  0 siblings, 1 reply; 2+ messages in thread
From: Deepak Gowda @ 2020-05-26  5:57 UTC (permalink / raw)
  To: dev

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 <mbuf_pool_socket_0>: 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

Any insight is appreciated.
Thanks!

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dpdk-dev] xdp_umem_configure(): Failed to create umem
  2020-05-26  5:57 [dpdk-dev] xdp_umem_configure(): Failed to create umem Deepak Gowda
@ 2020-05-26  9:14 ` Bruce Richardson
  0 siblings, 0 replies; 2+ messages in thread
From: Bruce Richardson @ 2020-05-26  9:14 UTC (permalink / raw)
  To: Deepak Gowda; +Cc: 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 <mbuf_pool_socket_0>: 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-05-26  9:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-26  5:57 [dpdk-dev] xdp_umem_configure(): Failed to create umem Deepak Gowda
2020-05-26  9:14 ` Bruce Richardson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).