DPDK usage discussions
 help / color / mirror / Atom feed
From: Hong Christian <hongguochun@hotmail.com>
To: "users@dpdk.org"
	<IMCEAMAILTO-users+40dpdk+2Eorg@AUSP282.PROD.OUTLOOK.COM>,
	"xiaolong.ye@intel.com" <xiaolong.ye@intel.com>
Subject: [dpdk-users] net_af_xdp start failed with can't get next link
Date: Wed, 27 Oct 2021 03:38:37 +0000
Message-ID: <8e2fa7daa8de4afea6c35c70caf2801eSY4P282MB27586AD04CD8958D7E386BC9AC849@SY4P282MB2758.AUSP282.PROD.OUTLOOK.COM> (raw)

[-- Attachment #1: Type: text/plain, Size: 1569 bytes --]

Hello,

I try to use af_xdp of DPDK 19.11, but start failed with testpmd. Here is the log prints, could you please give suggestion for this error ? Thanks in advance!

------
[root@gc bin]$ ./testpmd -l 1,2,3 -n 4 --log-level=pmd.net.af_xdp:info --no-pci --vdev net_af_xdp,iface=ens12,start_queue=0,queue_count=3 -- -i --rxq=3 --txq=3
EAL: Detected 16 lcore(s)
EAL: Detected 1 NUMA nodes
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: Selected IOVA mode 'PA'
EAL: No available hugepages reported in hugepages-1048576kB
EAL: Probing VFIO support...
rte_pmd_af_xdp_probe(): Initializing pmd_af_xdp for net_af_xdp
init_internals(): Zero copy between umem and mbuf enabled.
Interactive-mode selected
testpmd: create a new mbuf pool <mbuf_pool_socket_0>: n=163456, 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)
eth_rx_queue_setup(): Set up rx queue, rx queue id: 0, xsk queue id: 0
libbpf: can't get next link: Invalid argument
eth_rx_queue_setup(): Set up rx queue, rx queue id: 1, xsk queue id: 1
libbpf: can't get next link: Invalid argument
eth_rx_queue_setup(): Set up rx queue, rx queue id: 2, xsk queue id: 2
libbpf: can't get next link: Invalid argument
Port 0: FA:0C:B1:0F:DF:01
------

My test env:
DPDK: stable 19.11.6
libbpf: git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git
OS:Centos 7.9 + kernel 5.4.155-1.el7.elrepo.x86_64


Br,
Christian

[-- Attachment #2: Type: text/html, Size: 5152 bytes --]

             reply	other threads:[~2021-11-04 14:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-27  3:38 Hong Christian [this message]
2021-11-04 14:35 ` Loftus, Ciara

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8e2fa7daa8de4afea6c35c70caf2801eSY4P282MB27586AD04CD8958D7E386BC9AC849@SY4P282MB2758.AUSP282.PROD.OUTLOOK.COM \
    --to=hongguochun@hotmail.com \
    --cc=IMCEAMAILTO-users+40dpdk+2Eorg@AUSP282.PROD.OUTLOOK.COM \
    --cc=xiaolong.ye@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

DPDK usage discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://inbox.dpdk.org/users/0 users/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 users users/ http://inbox.dpdk.org/users \
		users@dpdk.org
	public-inbox-index users

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.users


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git