From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 4FF8546814 for ; Thu, 29 May 2025 01:01:41 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DB8834021F; Thu, 29 May 2025 01:01:40 +0200 (CEST) Received: from mail-pj1-f48.google.com (mail-pj1-f48.google.com [209.85.216.48]) by mails.dpdk.org (Postfix) with ESMTP id 565834003C for ; Thu, 29 May 2025 01:01:39 +0200 (CEST) Received: by mail-pj1-f48.google.com with SMTP id 98e67ed59e1d1-311d27eb8bdso181682a91.0 for ; Wed, 28 May 2025 16:01:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1748473298; x=1749078098; darn=dpdk.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=x5/HcWVKVyY6HdRGF2TMWPAkR5qnjTU4WgRNz4Pi8W4=; b=M19hpW62tRCgC21f/R5v4R2pxZR8AmdA48iuV3MWUPFwJvkjgekd8ixwExYVk0oimf qjMYv7kNKOPBQgM4Vq9XlCmcloTw4DmRcfOwT8mzq08o5K1DmoZ0GzYRxu9H338FzYa7 HQlejYYNUkykV1WmoA2lpGSIyXi/OLrgwEU8pb5FewDV7j6AWYuP6TDAagE/CmmFGEow Jyj0B7yToR9XbAMFcw1W/R1ZoMzSWts2c7DeqRKUv1BY2D4yJJyC9NTRwBOnvjx6lPKn TM9u5NGAefMOyPaw0sR7T66A3o/RkQXlniwydEwatM4gz7bLoVuvnboteiu4TRD0MDRj 1J3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1748473298; x=1749078098; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=x5/HcWVKVyY6HdRGF2TMWPAkR5qnjTU4WgRNz4Pi8W4=; b=iqzeTrtMt8DoPKmFHJBh2PnlXhuWPgR68wrmvg/tUG/mOA/CYUtYXPlwHY5duT8Wa+ Amj7QJBDG8yh5KHmx/Wkd7uEyV0MMq1OHMdYKcbI5Hr58HXM1ri331IIbFlN1gO7UH6B 8yTDaoroA+yhlrnZn9O5aD9OS8S2X5+5zm2FHDLEgiM4q9caW0Wesag/g64/bhAqv+yT 4iJ6p2gdmeHvs5hY1ywbX96OTLTO4Ow+PlWRJUY/6JM8mf1H7oPTUcIx4oY6JWhmG9Bq k5QsWoA5XXjWsKc9dPWnYxsqd41+drERQglFwjJoD9e+Sdz3lDI8lR9HdmN+NH8OEP7G 2maw== X-Gm-Message-State: AOJu0Yxr7CnblmwJYtTWYfhIFTLicXjYIz4uY++THPsSJlc/ad4RelJT cFxqrC6ywJgP0puHB5Djcma3j8dOOlC4yz7jU6LjvjhtBLDR5lZT9SbLP+FZiVViqmrBs9v0U6B xOi8H1q1MC0Vx+nyZpej7zXqxMpKsPPM= X-Gm-Gg: ASbGncsD+9iUCd9aQuljlDVf4x34HLrJ5CNJGbZCX4ljBNlWHtR/nPSyvh1v3VwX5Qn krTnhZLuQwn3Nln1i7SJKm+FJsuxlw/pViyjou19y1YYLBoyWWXyLiImfT00NRKWS7AWEaXGmFX sqGbc6/ZOFFbE6DgVG2+zpmUnVsGAbanuxNHnr4nBeRGY= X-Google-Smtp-Source: AGHT+IEViuZzzdXoxRqFz4Mx91/A6yJ7Cv+/kRys70RO1EX+icD9Z3BSWOQ0iFCYJyWr4WCd31XcZArbXktRjacPjNM= X-Received: by 2002:a17:90b:50:b0:311:e8cc:425d with SMTP id 98e67ed59e1d1-3121dc54006mr26592a91.10.1748473297995; Wed, 28 May 2025 16:01:37 -0700 (PDT) MIME-Version: 1.0 References: <20250527082918.uurt6ewbhveldici@ds-vm-debian.local> In-Reply-To: From: Charles Oluwaseun Oluboyo Date: Thu, 29 May 2025 00:00:29 +0100 X-Gm-Features: AX0GCFska4OeS4MesLa4mPBdSFc_eadamt-hMu7870FgTuf68jNOZGCXQ_eBIYs Message-ID: Subject: Re: Unable to initialize ConnectX-4 ports in DPDK 24.11 and 25.03 To: Dariusz Sosnowski Cc: users@dpdk.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org 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 =3D 65536 dev_info->max_mtu =3D 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? Regards, Oluwaseun On Tue, May 27, 2025 at 7:12=E2=80=AFPM Charles Oluwaseun Oluboyo 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-v= iacheslavo@nvidia.com/ > > - https://patches.dpdk.org/project/dpdk/patch/20250514075530.419423-1-v= iacheslavo@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=3D2, Num queues 1,1. > EAL: PANIC in initialize_port_info(): > Cannot configure device: port=3D2, 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