[dpdk-users] [dpdk][pktgen] - execute pktgen with mlx4 (40G) with some errors

Paul Tsvika mozloverinweb at gmail.com
Mon Jul 31 12:14:11 CEST 2017


Hi,

Below is my configuration:

AOC: Mellanox MT27500 Family [ConnectX-3]
OS: Ubuntu 16.04
DPDK version: 17.05.1
Pktgen: 3.3.8
Memory: 16G
CPU: Intel(R) Xeon(R) CPU D-1557 (12C)

I've enabled the configuration in dpdk (CONFIG_RTE_LIBRTE_MLX4_PMD=y) and
installed Mellanox OFED
<http://www.mellanox.com/page/products_dyn?product_family=26&mtag=linux_sw_drivers>
driver and recompiled DPDK. It all worked.

Below is my pci network class information:

pci at 0000:03:00.0  eno3    network        Ethernet Connection X552/X557-AT
10GBAS
pci at 0000:03:00.1  eno4    network        Ethernet Connection X552/X557-AT
10GBAS
pci at 0000:04:00.0  ib0     network        MT27500 Family [ConnectX-3]
pci at 0000:05:00.0  eno1    network        I350 Gigabit Network Connection
pci at 0000:05:00.1  eno2    network        I350 Gigabit Network Connection
pci at 0000:04:00.0  ens2d1  network        Ethernet interface

And my step to run pktgen is shown in the following:

$test: modprobe -a ib_uverbs mlx4_en mlx4_core mlx4_ib
$test: /etc/init.d/openibd restart
$test: sudo ./app/x86_64-native-linuxapp-gcc/pktgen -l 0-6 -n 1 --proc-type
auto --file-prefix pg -b 03:00.0 -b 03:00.1 -b 05:00.0 -b 05:00.1 -- -P -m
"[1-5.0]"


Looks like in order to use mlx4, i need to blacklist other ports so that i
-b other ports.


However, when i run the command above to execute pktgen, i got the
following error:

>>> Packet Burst 32, RX Desc 512, TX Desc 1024, mbufs/port 8192, mbuf cache
1024
!PANIC!: *** Did not find any ports to use ***
PANIC in pktgen_config_ports():
*** Did not find any ports to use ***6:
[./app/x86_64-native-linuxapp-gcc/pktgen(_start+0x29) [0x447239]]
5: [/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)
[0x7f0ec0931830]]
4: [./app/x86_64-native-linuxapp-gcc/pktgen(main+0x580) [0x444710]]
3: [./app/x86_64-native-linuxapp-gcc/pktgen(pktgen_config_ports+0x1614)
[0x46e324]]
2: [./app/x86_64-native-linuxapp-gcc/pktgen(__rte_panic+0xc3) [0x43ead4]]
1: [./app/x86_64-native-linuxapp-gcc/pktgen(rte_dump_stack+0x2b) [0x4b7ecb]]
Aborted (core dumped)


Anyone might have related experience please provide advise.


Thanks


P.T


-- 
P.T


More information about the users mailing list