From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id E08CB5902 for ; Fri, 18 Mar 2016 06:19:10 +0100 (CET) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga101.fm.intel.com with ESMTP; 17 Mar 2016 22:19:11 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,353,1455004800"; d="scan'208";a="913615152" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by orsmga001.jf.intel.com with ESMTP; 17 Mar 2016 22:19:09 -0700 Received: from fmsmsx111.amr.corp.intel.com (10.18.116.5) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.248.2; Thu, 17 Mar 2016 22:19:08 -0700 Received: from shsmsx104.ccr.corp.intel.com (10.239.110.15) by fmsmsx111.amr.corp.intel.com (10.18.116.5) with Microsoft SMTP Server (TLS) id 14.3.248.2; Thu, 17 Mar 2016 22:19:08 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.232]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.132]) with mapi id 14.03.0248.002; Fri, 18 Mar 2016 13:18:59 +0800 From: "Chen, Jing D" To: Thomas Monjalon , "marcdevel@gmail.com" , "Richardson, Bruce" , "Doherty, Declan" , "Ananyev, Konstantin" , "Lu, Wenzhuo" , "Zhang, Helin" , "harish.patil@qlogic.com" , "rahul.lakkireddy@chelsio.com" , "johndale@cisco.com" , "vido@cesnet.cz" , "adrien.mazarguil@6wind.com" , "alejandro.lucero@netronome.com" CC: "dev@dpdk.org" Thread-Topic: [PATCH v11 5/8] ethdev: add speed capabilities Thread-Index: AQHRgHhe+fl6SUtX4UmC2stMwa9hhp9eqf6w Date: Fri, 18 Mar 2016 05:18:58 +0000 Message-ID: <4341B239C0EFF9468EE453F9E9F4604D0446055D@shsmsx102.ccr.corp.intel.com> References: <1457992546-32230-1-git-send-email-thomas.monjalon@6wind.com> <1458238145-7496-1-git-send-email-thomas.monjalon@6wind.com> <1458238145-7496-6-git-send-email-thomas.monjalon@6wind.com> In-Reply-To: <1458238145-7496-6-git-send-email-thomas.monjalon@6wind.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v11 5/8] ethdev: add speed capabilities X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Mar 2016 05:19:11 -0000 Hi, Best Regards, Mark > -----Original Message----- > From: Thomas Monjalon [mailto:thomas.monjalon@6wind.com] > Sent: Friday, March 18, 2016 2:09 AM > To: marcdevel@gmail.com; Richardson, Bruce; Doherty, Declan; Ananyev, > Konstantin; Lu, Wenzhuo; Zhang, Helin; Chen, Jing D; harish.patil@qlogic.= com; > rahul.lakkireddy@chelsio.com; johndale@cisco.com; vido@cesnet.cz; > adrien.mazarguil@6wind.com; alejandro.lucero@netronome.com > Cc: dev@dpdk.org > Subject: [PATCH v11 5/8] ethdev: add speed capabilities >=20 > From: Marc Sune >=20 > The speed capabilities of a device can be retrieved with > rte_eth_dev_info_get(). >=20 > The new field speed_capa is initialized in the drivers without > taking care of device characteristics in this patch. > When the capabilities of a driver are accurate, the table in > overview.rst must be filled. >=20 > Signed-off-by: Marc Sune > --- > doc/guides/nics/overview.rst | 1 + > doc/guides/rel_notes/release_16_04.rst | 8 ++++++++ > drivers/net/bnx2x/bnx2x_ethdev.c | 1 + > drivers/net/cxgbe/cxgbe_ethdev.c | 1 + > drivers/net/e1000/em_ethdev.c | 4 ++++ > drivers/net/e1000/igb_ethdev.c | 4 ++++ > drivers/net/fm10k/fm10k_ethdev.c | 4 ++++ > drivers/net/i40e/i40e_ethdev.c | 8 ++++++++ > drivers/net/ixgbe/ixgbe_ethdev.c | 8 ++++++++ > drivers/net/mlx4/mlx4.c | 2 ++ > drivers/net/mlx5/mlx5_ethdev.c | 3 +++ > drivers/net/nfp/nfp_net.c | 2 ++ > lib/librte_ether/rte_ethdev.h | 21 +++++++++++++++++++++ > 13 files changed, 67 insertions(+) >=20 >=20 > static void > diff --git a/drivers/net/fm10k/fm10k_ethdev.c > b/drivers/net/fm10k/fm10k_ethdev.c > index edc8c11..2a1c222 100644 > --- a/drivers/net/fm10k/fm10k_ethdev.c > +++ b/drivers/net/fm10k/fm10k_ethdev.c > @@ -1410,6 +1410,10 @@ fm10k_dev_infos_get(struct rte_eth_dev *dev, > .nb_min =3D FM10K_MIN_TX_DESC, > .nb_align =3D FM10K_MULT_TX_DESC, > }; > + > + dev_info->speed_capa =3D ETH_LINK_SPEED_1G | > ETH_LINK_SPEED_2_5G | > + ETH_LINK_SPEED_10G | ETH_LINK_SPEED_25G | > + ETH_LINK_SPEED_40G; > } >=20 Fm10k has 100G capability, we'd better to add ETH_LINK_SPEED_100G here.