DPDK usage discussions
 help / color / mirror / Atom feed
From: "Loftus, Ciara" <ciara.loftus@intel.com>
To: Hong Christian <hongguochun@hotmail.com>
Cc: "users@dpdk.org" <users@dpdk.org>
Subject: RE: [dpdk-users] net_af_xdp start failed with can't get next link
Date: Thu, 4 Nov 2021 14:35:06 +0000
Message-ID: <PH0PR11MB4791CBBEF1F1D18776578E568E8D9@PH0PR11MB4791.namprd11.prod.outlook.com> (raw)
In-Reply-To: <8e2fa7daa8de4afea6c35c70caf2801eSY4P282MB27586AD04CD8958D7E386BC9AC849@SY4P282MB2758.AUSP282.PROD.OUTLOOK.COM>

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

Apologies for missing this email last week. Somehow it only reached my inbox today.
I believe we got to the root of the problem here:
https://github.com/xdp-project/xdp-tutorial/issues/255#issuecomment-953863354
Just including the resolution in this thread too, in case others find the same issue.

Thanks,
Ciara

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

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

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

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=PH0PR11MB4791CBBEF1F1D18776578E568E8D9@PH0PR11MB4791.namprd11.prod.outlook.com \
    --to=ciara.loftus@intel.com \
    --cc=hongguochun@hotmail.com \
    --cc=users@dpdk.org \
    /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