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 CA49AA0562; Thu, 15 Apr 2021 02:57:15 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A5961161DD5; Thu, 15 Apr 2021 02:57:15 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id 5853C161DC3 for ; Thu, 15 Apr 2021 02:57:13 +0200 (CEST) IronPort-SDR: xdEaQMDiIjLZCE3XOWCZ20gNrd7Je5i1FmSL9IemMSFpO/PFamdk44vHUyKVkTby19+j3JWvD/ 6bw5L5T2MTFw== X-IronPort-AV: E=McAfee;i="6200,9189,9954"; a="194331894" X-IronPort-AV: E=Sophos;i="5.82,223,1613462400"; d="scan'208";a="194331894" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Apr 2021 17:57:12 -0700 IronPort-SDR: 3y1qo5OZcVPijE+Gq+mJJ+jS46kJkqrU5vogzZi3+aAA0aDauq2P1FWNMgTs8i4Envu2C8b3Vv aORcbXxk+Csg== X-IronPort-AV: E=Sophos;i="5.82,223,1613462400"; d="scan'208";a="461429670" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.213.204.163]) ([10.213.204.163]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Apr 2021 17:57:11 -0700 From: Ferruh Yigit To: "Min Hu (Connor)" , dev@dpdk.org References: <1618321639-57642-1-git-send-email-humin29@huawei.com> <1618321639-57642-7-git-send-email-humin29@huawei.com> X-User: ferruhy Message-ID: <9ffcb199-d4e7-087d-85ff-d935285a0b3e@intel.com> Date: Thu, 15 Apr 2021 01:57:10 +0100 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Subject: Re: [dpdk-dev] [PATCH 6/9] net/hns3: report the speed capability for PF 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 Sender: "dev" On 4/15/2021 1:39 AM, Ferruh Yigit wrote: > On 4/13/2021 2:47 PM, Min Hu (Connor) wrote: >> From: Huisong Li >> >> The speed capability of the device can be reported to the upper-layer app >> in rte_eth_dev_info_get API. In this API, the speed capability is derived >> from the 'supported_speed', which is the speed capability actually >> supported by the NIC. The value of the 'supported_speed' is obtained >> once in the probe stage and may be updated in the scheduled task to deal >> with the change of the transmission interface. >> >> Signed-off-by: Huisong Li >> Signed-off-by: Min Hu (Connor) > > <...> > >> @@ -2688,6 +2749,7 @@ hns3_dev_infos_get(struct rte_eth_dev *eth_dev, struct >> rte_eth_dev_info *info) >>           .nb_mtu_seg_max = hw->max_non_tso_bd_num, >>       }; >> +    info->speed_capa = hns3_get_speed_capa(hw); > > Can you please update 'hns3.ini', to advertise 'Speed capabilities' support? 'hns3.ini' added while merging, please verify the final commit.