[MCX415A-CCAT] DPDK (l2fwd) cant start port: Cause: rte_eth_dev_start:err=-12, port=0

Hello Mellanox community, I have an debian-server with an ConnectX-4 card (MCX415A-CCAT, firmware version 12.26.4012). Im using DPDK 19.11.

I try to start l2fwd and other DPDK-software, but i cant start my port:

sudo x86_64-native-linux-gcc/app/l2fwd – -p 0x1

EAL: Detected 40 lcore(s)

EAL: Detected 2 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…

EAL: PCI device 0000:01:00.0 on NUMA socket 0

EAL: probe driver: 8086:10fb net_ixgbe

EAL: PCI device 0000:01:00.1 on NUMA socket 0

EAL: probe driver: 8086:10fb net_ixgbe

EAL: PCI device 0000:04:00.0 on NUMA socket 0

EAL: probe driver: 15b3:1013 net_mlx5

EAL: PCI device 0000:07:00.0 on NUMA socket 0

EAL: probe driver: 8086:1521 net_e1000_igb

EAL: PCI device 0000:07:00.1 on NUMA socket 0

EAL: probe driver: 8086:1521 net_e1000_igb

MAC updating enabled

Notice: odd number of ports in portmask.

Lcore 0: RX port 0

Initializing port 0… EAL: Error - exiting with code: 1

Cause: rte_eth_dev_start:err=-12, port=0

I would appreciate any help! Thanks a lot!

Here are some Information about my system:

sudo dmesg | grep mlx5

[ 4.238711] mlx5_core 0000:04:00.0: firmware version: 12.26.4012

[ 4.238752] mlx5_core 0000:04:00.0: 126.016 Gb/s available PCIe bandwidth (8 GT/s x16 link)

[ 4.494943] mlx5_core 0000:04:00.0: Port module event: module 0, Cable plugged

[ 4.513542] mlx5_core 0000:04:00.0: MLX5E: StrdRq(0) RqSz(1024) StrdSz(64) RxCqeCmprss(0)

[ 4.755869] mlx5_core 0000:04:00.0 enp4s0: renamed from eth0

[ 4.773241] mlx5_ib: Mellanox Connect-IB Infiniband driver v5.0-0

[ 4.773247] mlx5_ib: Mellanox Connect-IB Infiniband driver v5.0-0

[ 575.042521] mlx5_core 0000:04:00.0 enp4s0: Link down

[ 1170.059973] mlx5_core 0000:04:00.0 enp4s0: Link down

ibv_devinfo

hca_id: mlx5_0

transport: InfiniBand (0)

fw_ver: 12.26.4012

node_guid: 7cfe:9003:0031:0dd2

sys_image_guid: 7cfe:9003:0031:0dd2

vendor_id: 0x02c9

vendor_part_id: 4115

hw_ver: 0x0

board_id: MT_2140110033

phys_port_cnt: 1

port: 1

state: PORT_DOWN (1)

max_mtu: 4096 (5)

active_mtu: 1024 (3)

sm_lid: 0

port_lid: 0

port_lmc: 0x00

link_layer: Ethernet

I see that you are using the Inbox from your OS v5.0-0, can it be reproduced if you are using our Mellanox driver? Downloadable via link:

https://www.mellanox.com/page/products_dyn?product_family=26&mtag=linux_sw_drivers

latest driver is 4.7-3.2.9.0.

Also, I see that the port state is down, is this HCA cabled?

Also, did you enable PMD (before dpdk compilation) : vi config/common_base -->enable MLX5_PMD set to yes.