On Thu, May 29, 2025 at 12:00:29AM +0100, Charles Oluwaseun Oluboyo wrote: > Hello all. > > Appears the PMD is returning the wrong value for the max MTU. > > The error about the frame size is raised in eth_dev_validate_mtu > called from rte_eth_dev_configure. > dev_info->max_rx_pktlen = 65536 > dev_info->max_mtu = 65535 > > That is not true. From my testing, max MTU is 9960 for this ConnectX-4 > Should this have been set in mlx5_dev_infos_get?
Correct, the current implementation of mlx5_dev_infos_get() returns invalid max MTU and Rx packet length. It should be fixed. I have opened a bugzilla ticket for tracking: https://bugs.dpdk.org/show_bug.cgi?id=1719 Thank you for reporting. > > Regards, > > Oluwaseun > > On Tue, May 27, 2025 at 7:12 PM Charles Oluwaseun Oluboyo > <charlesb...@gmail.com> wrote: > > > > Hello Dariusz and all, > > > > > > > > One of the patches merged to 24.11 introduced an issue with queues > > > descriptor limits on older NICs. > > > > > > A patch with a fix for that is pending for merge to 25.07. > > > > > > Would you be able apply the following patches and test on your side? > > > > > > - > > > https://patches.dpdk.org/project/dpdk/patch/20250424133128.133900-1-viachesl...@nvidia.com/ > > > - > > > https://patches.dpdk.org/project/dpdk/patch/20250514075530.419423-1-viachesl...@nvidia.com/ > > > > > > > I applied these patches, and they have fixed the issue with the > > descriptors. There are now 32768 per queue. > > I have tested with testpmd, and the ports work. However, I am unable > > to initialize the ports with pktgen. > > > > Initialize Port 2 ... > > Max MTU: 65535 > > Enabling Tx TCP_CKSUM offload > > Enabling Tx UDP_CKSUM offload > > Enabling Tx IPV4_CKSUM offload > > Allocate packet sequence array > > Setup latency defaults > > Setup fill pattern defaults > > Configure device > > ETHDEV: Frame size (65553) > device max frame size (65536) for port_id 2 > > !PANIC!: Cannot configure device: port=2, Num queues 1,1. > > EAL: PANIC in initialize_port_info(): > > Cannot configure device: port=2, Num queues 1,1. > > 0: /usr/local/lib/x86_64-linux-gnu/librte_eal.so.25 > > (rte_dump_stack+0x42) [7f16cb3de6d2] > > 1: /usr/local/lib/x86_64-linux-gnu/librte_eal.so.25 (__rte_panic+0xd4) > > [7f16cb3b737f] > > 2: ./usr/local/bin/pktgen (5606908ff000+0xd26e) [56069090c26e] > > 3: ./usr/local/bin/pktgen (5606908ff000+0x2c61e) [56069092b61e] > > 4: ./usr/local/bin/pktgen (5606908ff000+0xe339) [56069090d339] > > 5: /lib/x86_64-linux-gnu/libc.so.6 (7f16cafc2000+0x29d90) [7f16cafebd90] > > 6: /lib/x86_64-linux-gnu/libc.so.6 (__libc_start_main+0x80) [7f16cafebe40] > > 7: ./usr/local/bin/pktgen (5606908ff000+0xecc5) [56069090dcc5] > > > > 65553 looks very unusual, doesn't it? Do you have any suggestions as > > to what to do next? > > > > Regards, > > > > Oluwaseun