NVIDIA / 5t5g

This project shows how to leverage your DPDK network application with Mellanox 5T5G features like Accurate Send Scheduling and eCPRI flow steering rules
21 stars 10 forks source link

rte_eth_dev_configure() failure with Tx offloads(0x200000) capability with dpdk-22.11.3 #4

Open Kwangbaek opened 11 months ago

Kwangbaek commented 11 months ago

Hi,

I’m trying to make an application which sends a packet traffic at line rate(100Gbps) making use of “Packet Pacing(tx_pp)” and "Real Time Scheduling" feature. However, I met an error message while enabling RTE_ETH_TX_OFFLOAD_SEND_ON_TIMESTAMP ‘rte_eth_dev_configure()’.

I don't have a Grandmaster and no ethernet switch at the moment, however, I really need this feature.

Please let me know if there is a way of running a generator in 5t5g repo(https://github.com/NVIDIA/5t5g) without synchronizing to a grandmaster. Or advise me on how to achieve it with some additional equipment.

Here is my configuration. a. Server/OS : a Dell Server with Red Hat Linux 8.8 b. CPU : Mellanox ConnectX-6 Dx Dual Port 100 GbE QSFP56 Network Adapter c. NIC card : ConnectX-6 DX d. NIC firmware : MLNX_OFED_LINUX-23.07-0.5.1.2-rhel8.8-x86_64.iso e. port configuration : loopback (port 0 tx -> port 1 rx, port 1 tx -> port 0 rx)

Kind regards,

Kevin


More detailed information

  1. Linux OS : "Linux MELB-TEST-D18.ad.analog.com 4.18.0-477.10.1.rt7.274.el8_8.x86_64 #1 SMP PREEMPT_RT Wed Apr 5 13:20:38 EDT 2023 x86_64 x86_64 x86_64 GNU/Linux "

  2. Mellanox Firmware version : " [root@MELB-TEST-D18 generator]# mlxfwmanager Querying Mellanox devices firmware …

Device #1: Device Type: ConnectX6DX Part Number: 0F6FXM_08P2T2_Ax Description: Mellanox ConnectX-6 Dx Dual Port 100 GbE QSFP56 Network Adapter PSID: DEL0000000027 PCI Device Name: /dev/mst/mt4125_pciconf0 Base GUID: 946dae0300e22eda Base MAC: 946daee22eda Versions: Current Available FW 22.36.1010 N/A PXE 3.6.0901 N/A UEFI 14.29.0014 N/A

Status: No matching image found "

  1. Full error messages from the generator :

"EAL: Detected CPU lcores: 24 EAL: Detected NUMA nodes: 1 EAL: Detected static linkage of DPDK EAL: Multi-process socket /var/run/dpdk/rte/mp_socket EAL: Selected IOVA mode ‘PA’ EAL: VFIO support initialized EAL: Probe PCI driver: mlx5_pci (15b3:101d) device: 0000:16:00.0 (socket 0) EAL: Probe PCI driver: mlx5_pci (15b3:101d) device: 0000:16:00.1 (socket 0) TELEMETRY: No legacy callbacks, legacy socket not created

Device driver name in use: mlx5_pci… Initializing port 0 with 8 RX queues and 8 TX queues… Ethdev port_id=0 requested Tx offloads 0x200000 doesn’t match Tx offloads capabilities 0xd96af in rte_eth_dev_configure() EAL: Error - exiting with code: 1 Cause: Cannot configure device: err=-22, port=0 "

Kwangbaek commented 11 months ago

Is the generator supposed to work with DPDK version 22.11.3 ? I met a couple of compile error initially and then the failure in rte_eth_dev_configure() started to happen.

Kwangbaek commented 11 months ago

my port_eth_conf structure is as follows. port_eth_conf