From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v4 18/32] net/qede: add missing 100G link speed capability Date: Wed, 26 Oct 2016 17:41:58 +0200 Message-ID: <4491648.SeJM0cAZEU@xps13> References: <1476850306-2141-1-git-send-email-rasesh.mody@qlogic.com> <1476850306-2141-19-git-send-email-rasesh.mody@qlogic.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, Dept-EngDPDKDev@qlogic.com To: Rasesh Mody , ferruh.yigit@intel.com, bruce.richardson@intel.com, Harish Patil Return-path: Received: from mail-wm0-f43.google.com (mail-wm0-f43.google.com [74.125.82.43]) by dpdk.org (Postfix) with ESMTP id 11E64BD1D for ; Wed, 26 Oct 2016 17:42:00 +0200 (CEST) Received: by mail-wm0-f43.google.com with SMTP id e69so39130230wmg.0 for ; Wed, 26 Oct 2016 08:42:00 -0700 (PDT) In-Reply-To: <1476850306-2141-19-git-send-email-rasesh.mody@qlogic.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 2016-10-18 21:11, Rasesh Mody: > From: Harish Patil > > This patch fixes the missing 100G link speed advertisement > when the 100G support was initially added. > > Fixes: 2af14ca79c0a ("net/qede: support 100G") > > Signed-off-by: Harish Patil [...] > [Features] > +Speed capabilities = Y This feature should be checked only when it is fully implemented, i.e. when you return the real capabilities of the device. > --- a/drivers/net/qede/qede_ethdev.c > +++ b/drivers/net/qede/qede_ethdev.c > @@ -599,7 +599,8 @@ qede_dev_info_get(struct rte_eth_dev *eth_dev, > DEV_TX_OFFLOAD_UDP_CKSUM | > DEV_TX_OFFLOAD_TCP_CKSUM); > > - dev_info->speed_capa = ETH_LINK_SPEED_25G | ETH_LINK_SPEED_40G; > + dev_info->speed_capa = ETH_LINK_SPEED_25G | ETH_LINK_SPEED_40G | > + ETH_LINK_SPEED_100G; > } It is only faking the capabilities at driver-level. You should check if the underlying device is able to achieve 100G before advertising this flag to the application. I suggest to update this patch to remove the doc update. The contract is to fill it only when the code is fixed. By the way, we must call every other drivers to properly implement this feature.