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 8DA2543DEE; Wed, 3 Apr 2024 18:49:40 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5B50D4025D; Wed, 3 Apr 2024 18:49:40 +0200 (CEST) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 771EF4025C for ; Wed, 3 Apr 2024 18:49:38 +0200 (CEST) Received: by linux.microsoft.com (Postfix, from userid 1086) id B11AA20E8CB7; Wed, 3 Apr 2024 09:49:37 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com B11AA20E8CB7 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1712162977; bh=a362jGH1nsw4A75IYzvF8Z/hpbdYTPcmzrz25s0p4fk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=sd6JllQpN7oBTxET82HP6aoFK+Gi1L7n5+XUCIxif1i6eE4q9fuKfQLeB01BGAz1o 84LO0GtVrJBcKb6+acWVFHdzk6iK9SP/g2XKjkUtRGWF5P2VBdcdm2cVki8IFtv3Fm M0zwvMxR0CNniKBMBGkTml4+n+ctRQk2y7HsqnlM= Date: Wed, 3 Apr 2024 09:49:37 -0700 From: Tyler Retzlaff To: Marek Pazdan Cc: Thomas Monjalon , Ferruh Yigit , Andrew Rybchenko , dev@dpdk.org, david.marchand@redhat.com Subject: Re: [PATCH] lib: add get/set link settings interface Message-ID: <20240403164937.GA14169@linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net> References: <20240326235909.25276-1-mpazdan@arista.com> <20240403134026.7037-1-mpazdan@arista.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240403134026.7037-1-mpazdan@arista.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On Wed, Apr 03, 2024 at 06:40:24AM -0700, Marek Pazdan wrote: > There are link settings parameters available from PMD drivers level > which are currently not exposed to the user via consistent interface. > When interface is available for system level those information can > be acquired with 'ethtool DEVNAME' (ioctl: ETHTOOL_SLINKSETTINGS/ > ETHTOOL_GLINKSETTINGS). There are use cases where > physical interface is passthrough to dpdk driver and is not available > from system level. Information provided by ioctl carries information > useful for link auto negotiation settings among others. > > Signed-off-by: Marek Pazdan > --- > diff --git a/lib/ethdev/rte_ethdev.h b/lib/ethdev/rte_ethdev.h > index 147257d6a2..66aad925d0 100644 > --- a/lib/ethdev/rte_ethdev.h > +++ b/lib/ethdev/rte_ethdev.h > @@ -335,7 +335,7 @@ struct rte_eth_stats { > __extension__ > struct __rte_aligned(8) rte_eth_link { /**< aligned for atomic64 read/write */ > uint32_t link_speed; /**< RTE_ETH_SPEED_NUM_ */ > - uint16_t link_duplex : 1; /**< RTE_ETH_LINK_[HALF/FULL]_DUPLEX */ > + uint16_t link_duplex : 2; /**< RTE_ETH_LINK_[HALF/FULL/UNKNOWN]_DUPLEX */ > uint16_t link_autoneg : 1; /**< RTE_ETH_LINK_[AUTONEG/FIXED] */ > uint16_t link_status : 1; /**< RTE_ETH_LINK_[DOWN/UP] */ > }; this breaks the abi. David does libabigail pick this up i wonder?