<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span style="font-family:Calibri,Helvetica,sans-serif">Hello,</span></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
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!</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
------</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span style="font-family:"Courier New",monospace">[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</span>
<div><span style="font-family:"Courier New",monospace">EAL: Detected 16 lcore(s)</span></div>
<div><span style="font-family:"Courier New",monospace">EAL: Detected 1 NUMA nodes</span></div>
<div><span style="font-family:"Courier New",monospace">EAL: Multi-process socket /var/run/dpdk/rte/mp_socket</span></div>
<div><span style="font-family:"Courier New",monospace">EAL: Selected IOVA mode 'PA'</span></div>
<div><span style="font-family:"Courier New",monospace">EAL: No available hugepages reported in hugepages-1048576kB</span></div>
<div><span style="font-family:"Courier New",monospace">EAL: Probing VFIO support...</span></div>
<div><span style="font-family:"Courier New",monospace">rte_pmd_af_xdp_probe(): Initializing pmd_af_xdp for net_af_xdp</span></div>
<div><span style="font-family:"Courier New",monospace">init_internals(): Zero copy between umem and mbuf enabled.</span></div>
<div><span style="font-family:"Courier New",monospace">Interactive-mode selected</span></div>
<div><span style="font-family:"Courier New",monospace">testpmd: create a new mbuf pool <mbuf_pool_socket_0>: n=163456, size=2176, socket=0</span></div>
<div><span style="font-family:"Courier New",monospace">testpmd: preferred mempool ops selected: ring_mp_mc</span></div>
<div><br>
</div>
<div><span style="font-family:"Courier New",monospace">Warning! port-topology=paired and odd forward ports number, the last port will pair with itself.</span></div>
<div><br>
</div>
<div><span style="font-family:"Courier New",monospace">Configuring Port 0 (socket 0)</span></div>
<div><span style="font-family:"Courier New",monospace">eth_rx_queue_setup(): Set up rx queue, rx queue id: 0, xsk queue id: 0</span></div>
<div><span style="font-family:"Courier New",monospace">libbpf: can't get next link: Invalid argument</span></div>
<div><span style="font-family:"Courier New",monospace">eth_rx_queue_setup(): Set up rx queue, rx queue id: 1, xsk queue id: 1</span></div>
<div><span style="font-family:"Courier New",monospace">libbpf: can't get next link: Invalid argument</span></div>
<div><span style="font-family:"Courier New",monospace">eth_rx_queue_setup(): Set up rx queue, rx queue id: 2, xsk queue id: 2</span></div>
<div><span style="font-family:"Courier New",monospace">libbpf: can't get next link: Invalid argument</span></div>
<span style="font-family:"Courier New",monospace">Port 0: FA:0C:B1:0F:DF:01</span><br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
------</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span style="margin:0px; font-size:12pt">My test env:</span>
<div style="margin:0px; font-size:12pt">DPDK: stable 19.11.6</div>
<div style="margin:0px; font-size:12pt">libbpf: <span style="margin:0px">git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git</span></div>
<span style="margin:0px; font-size:12pt">OS£ºCentos 7.9 + kernel 5.4.155-1.el7.elrepo.x86_64</span><br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span style="font-family:Calibri,Helvetica,sans-serif">Br,</span></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span style="font-family:Calibri,Helvetica,sans-serif">Christian</span></div>
</body>
</html>