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 A76B9A0547; Fri, 5 Mar 2021 17:53:53 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6C12B22A3F4; Fri, 5 Mar 2021 17:53:53 +0100 (CET) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id E0C0B22A33E for ; Fri, 5 Mar 2021 17:53:51 +0100 (CET) IronPort-SDR: 3IjOx5VWVgbyG4SG009v5uUR/E2V62QS7DeHzbeVveLLZG7z5kd3TjAf2bdAbX/b8vmSR64G2g 5h0CZ9qy1t2g== X-IronPort-AV: E=McAfee;i="6000,8403,9914"; a="175307108" X-IronPort-AV: E=Sophos;i="5.81,225,1610438400"; d="scan'208";a="175307108" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Mar 2021 08:53:50 -0800 IronPort-SDR: X86YCvR7q6nhZrFyU4KpL9rcwVjLtCzcOuhEnjo0P9YUIPgb7mpgBrVuZrUYrnTKQuwyxVpm/H PfDxCJHwNM4Q== X-IronPort-AV: E=Sophos;i="5.81,225,1610438400"; d="scan'208";a="446267611" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.213.208.100]) ([10.213.208.100]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Mar 2021 08:53:49 -0800 To: Ajit Khaparde , dev@dpdk.org References: <20210305041701.40101-1-ajit.khaparde@broadcom.com> From: Ferruh Yigit X-User: ferruhy Message-ID: <590c4af0-9650-3ccc-c758-51c434bb8f1e@intel.com> Date: Fri, 5 Mar 2021 16:53:46 +0000 MIME-Version: 1.0 In-Reply-To: <20210305041701.40101-1-ajit.khaparde@broadcom.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Subject: Re: [dpdk-dev] [PATCH v2] app/testpmd: add support for forced ethernet speed 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 3/5/2021 4:17 AM, Ajit Khaparde wrote: > Add support for forced ethernet speed setting. > Currently testpmd tries to configure the Ethernet port in autoneg mode. > It is not possible to set the Ethernet port to a specific speed while > starting testpmd. In some cases capability to configure a forced speed > for the Ethernet port during initialization may be necessary. This patch > tries to add this support. > > The patch assumes full duplex setting and does not attempt to change that. > So speeds like 10M, 100M are not configurable using this method. > > The command line to configure a forced speed of 10G: > dpdk-testpmd -c 0xff -- -i --eth-link-speed 10000 > > The command line to configure a forced speed of 50G: > dpdk-testpmd -c 0xff -- -i --eth-link-speed 50000 > > Signed-off-by: Ajit Khaparde <...> > @@ -536,3 +536,19 @@ The command line options are: > bit 1 - two hairpin ports paired > bit 0 - two hairpin ports loop > The default value is 0. Hairpin will use single port mode and implicit Tx flow mode. > + > +* ``--eth-link-speed`` > + > + Set a forced link speed to the ethernet port. > + 1000 - 1Gbps > + 10000 - 10Gbps > + 25000 - 25Gbps > + 40000 - 40Gbps > + 50000 - 50Gbps > + 100000 - 100Gbps > + 200000 - 200Gbps > + ... > + Line breaks are lost when converted to html, it becomes single line, '::' and indentation is required. Except from documentation, looks good to me.