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 78E3E46C7C for ; Sat, 2 Aug 2025 00:02:04 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 51CAA40298; Sat, 2 Aug 2025 00:02:04 +0200 (CEST) Received: from mail-yw1-f174.google.com (mail-yw1-f174.google.com [209.85.128.174]) by mails.dpdk.org (Postfix) with ESMTP id 906334028F for ; Sat, 2 Aug 2025 00:02:03 +0200 (CEST) Received: by mail-yw1-f174.google.com with SMTP id 00721157ae682-71b4677044bso29679107b3.2 for ; Fri, 01 Aug 2025 15:02:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1754085723; x=1754690523; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=ZiSKDJKVWGggW1HvFGxb7+9NvcTbc9Ll/NXv+K4ALmY=; b=mMFktwZdunNyiw2UDvFInhL9026OTVDOn5IreLzjnNnHK4BLHCPQmyqMJYZhOuESRE PsIJZsjbKBHPWMw8NLwXQ+VV8y8+M1d2mSAWpl9wHBJD47o2kQu4CnaP/72zs31Su+S8 dZt7Q+lrc4TJ8wsmhc8wz40ZZqzETHbQ2e5OJaMlNc6UgQAENxxFvkqSWfKjogzVOMQT 0CcSMQ+3PrL5rylZyHVJs8LqHWS8JLkEHND+g6PzoStMAkkaDDuqBM75pYVlDq+QpKwH gWQTFFHctnyEpevgJv0twVXAJzzlIDhjJEYykGKyQhmCItgLF4/AfC4A9B7VG0cNjH7U WnWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1754085723; x=1754690523; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ZiSKDJKVWGggW1HvFGxb7+9NvcTbc9Ll/NXv+K4ALmY=; b=Avkp332qkfSSuY4D9WV47dR3xFQyLdAWljIGHtmzR4hecb79j36lrVVnQxaQt1COHV bKJ940+XRfblrPNPuSggBo1e34KYtaIJWmN1zQpEaJgbOUmWCvB9M7IewL0V/kqvNJLP H5wNONxKIQ1GI5Snq5r/nTcoa3CN6bA6wm75bRYZBiLYaMH+/T8Fbf3gDyYRtytcoGZm nuiF2xChEd8DZVvZEpOcg7BOuioAxYwN2tCn9JL8Bq6hfqHW4G8FvIGKhRmmAPdjh4v8 VgA5jsLnTOGiEk6z+JKKK9qISWJtAGAijPox7qHjl/PvUiGO+8e2RXNH5K8djHIL54Bp B56w== X-Forwarded-Encrypted: i=1; AJvYcCXiIavi4nJhXrxW8/WOrFWjmzBue+crCRp6nKXMRCdeGWfGcG8mIpaZEyU+GDUiumKlyj94Gw==@dpdk.org X-Gm-Message-State: AOJu0YyKf1ugMvBtBRCESyDMsS/JfBnrHZ+Br2BldsrFUnW563St1qCM 0sn0z7H9e5f806zHscHITct8FhKNERB4cP+vYjP9Qr9PwE+tFyNBdqGj5nUL0NtEw+Y= X-Gm-Gg: ASbGncs0D08fbdC4l/zJ0oNhOe69S5NgeVSFyEjSst1L+B8QmCsbi6CRQGVqtjgh4K1 hSsvpajfPwhYhvH3o1VdhgoFKxnl0A5NO96xbyqgTklj0m1eFJsby2ztFBOX01W/YTAb5tM23kY luwOF+K0k/alb5NIz+AIAUgZB2xu35FOEgCRhAmPPaWyu9N38xfQLS62rkvpADbiVK+K37y57cP 4i7y1LyQK+3uSzjLXQ6+1PLEJQftd7rGUvnY632VOsKXNIU3EOKu6J6fAqD9HalwWOHX3knD1Lp qSnP3e8LXPTCSUcuQBS/TXNiurwl6VDc/VDATAi4i8vg/gE7xctupuApmw0r+pdqclVLVdl2864 zJmP1axYZP4/4VhI331H43IXwm569bQ3J6VoIZqJNi1eqWefyJJl8dJ6dh7G12sjCqqEnt5LMb2 olyxEEQqZgdQ== X-Google-Smtp-Source: AGHT+IGY37zFXuv5gwz+XcjKmX9E+fNUT57XZN6vVwqUKBzF+vWCVkYYirEwlHkUJxLC+OR7b2/0eA== X-Received: by 2002:a05:690c:8694:20b0:6ef:652b:91cf with SMTP id 00721157ae682-71b7ef6672amr12075267b3.27.1754085722721; Fri, 01 Aug 2025 15:02:02 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id 3f1490d57ef6-e8fd371bc2asm1821352276.3.2025.08.01.15.02.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Aug 2025 15:02:02 -0700 (PDT) Date: Fri, 1 Aug 2025 15:01:59 -0700 From: Stephen Hemminger To: Ivan Malov Cc: Renata Saiakhova , "users@dpdk.org" Subject: Re: Support for Forcing Speed/Duplex/Autoneg on i225 with DPDK igc Driver Message-ID: <20250801150159.3ef1e3d4@hermes.local> In-Reply-To: <403ff976-7b56-0489-10ab-adb6822e801a@arknetworks.am> References: <403ff976-7b56-0489-10ab-adb6822e801a@arknetworks.am> MIME-Version: 1.0 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 On Fri, 1 Aug 2025 17:10:44 +0400 (+04) Ivan Malov wrote: > Hi Renata, >=20 > On Fri, 1 Aug 2025, Renata Saiakhova wrote: >=20 > >=20 > > Hi all, > >=20 > > I=E2=80=99m trying to configure Layer 1 attributes (speed, duplex, and = autonegotiation) for Intel i225 interfaces in both kernel and DPDK modes, a= nd I=E2=80=99ve run into some issues. > >=20 > > In kernel driver mode, I normally use: =E2=80=9Cethtool -s eth5 speed 1= 00 duplex half autoneg off=E2=80=9D. > >=20 > > However, this results in the kernel message: =E2=80=9Cigc 0000:04:00.0 = eth5: Force mode currently not supported=E2=80=9D. > >=20 > > =C2=A0 > >=20 > > When the interface is bound to DPDK and connected to an OVS bridge, I c= onfigure it like this: > >=20 > > ovs-vsctl set Interface 1.extra2 \ > >=20 > > =C2=A0 type=3Ddpdk \ > >=20 > > =C2=A0 options:dpdk-devargs=3D0000:04:00.0 \ > >=20 > > =C2=A0 options:dpdk-speed=3D100 \ > >=20 > > =C2=A0 options:dpdk-autoneg=3Dfalse \ > >=20 > > =C2=A0 options:dpdk-duplex=3Dhalf > >=20 > > This should pass the speed/autoneg/duplex settings to the igc DPDK driv= er via devargs. =20 >=20 > Should it? Even if these were on the list of supported devargs for the PM= D in > question, they would belong in comma-separated tokens after '0000:04:00.0= '. > I don't see these to be parsed in the OvS, neither do I see such in the P= MD. >=20 > Or are you looking at some custom OvS version? >=20 > >=20 > > However, it appears these options are not applied =E2=80=94 the interfa= ce continues to negotiate its settings as usual, and I can=E2=80=99t find a= ny code in the igc DPDK driver that processes these > > devargs parameters. =20 >=20 > If these were passed via 'dpdk-devargs', the PMD would've complained perh= aps. > Being passed as OvS's own options, they're likely just ignored by the OvS. >=20 > >=20 > > Is support for forced speed/duplex/autoneg available at all for i225 in= DPDK (or even kernel) mode? Or is this a hardware limitation? =20 >=20 > As per [1], 'forced' mode may not be supported in the DPDK PMD. But the c= ode > suggests one can possibly try to pass, say, 'RTE_ETH_LINK_SPEED_100M_HD', > without being accompanied by neither 'AUTONEG' nor 'FIXED', but that woul= d still > come as 'advertised' mode, not a 'forced' one. I may be wrong, though. >=20 > [1] https://github.com/DPDK/dpdk/blob/1b3bf1128d9bda5595861814792f74b8f57= 160c8/drivers/net/igc/igc_ethdev.c#L1088 >=20 > >=20 > > Any insight, documentation pointers, or confirmation of support status = especially in case of DPDK mode would be greatly appreciated. =20 >=20 > I take it OvS most likely needs to be augmented with extra code to recogn= ise > such options and translate those into DPDK link settings. For an example = of how > a DPDK application can do that, one should refer to 'test-pmd' implementa= tion. >=20 > Thank you. >=20 > >=20 > > Best regards, > >=20 > > =C2=A0 > >=20 > > =C2=A0 > >=20 > > Renata Saiakhova > > SW ARCHITECT > > renata.saiakhova@ekinops.com > > Tel: +32 16 799 970 > >=20 > > [logo_96dpi.gif] > >=20 > > [current.png] > >=20 > > =C2=A0 > >=20 > >=20 > > =20 Use of driver specific devargs is strongly discouraged. There is link_speeds in rte_eth_conf passed to rte_eth_dev_configure() which is the correct way to set fixed speed. It maybe that the driver doesn't interpret it correctly?