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 0222FA0561; Mon, 8 Mar 2021 12:03:43 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8588D22A353; Mon, 8 Mar 2021 12:03:43 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id 288A84068A for ; Mon, 8 Mar 2021 12:03:41 +0100 (CET) IronPort-SDR: +freLPHk7FqXU2nMHk6oPF4TQeA9LCJ5Q1+CtpdYTXu+qyise042YiN7b41SLYg7D5EYGffsuJ leSGN53jy4lg== X-IronPort-AV: E=McAfee;i="6000,8403,9916"; a="273034798" X-IronPort-AV: E=Sophos;i="5.81,232,1610438400"; d="scan'208";a="273034798" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Mar 2021 03:03:41 -0800 IronPort-SDR: EpCs76vzV0+PtZvoUzAcxju5rUWfOyMWhAXzF+SfpMVFY/1YUkrXw2gQg40uVvPS0vvjCXJGsm C16fuBeR9LhQ== X-IronPort-AV: E=Sophos;i="5.81,232,1610438400"; d="scan'208";a="409256446" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.213.195.201]) ([10.213.195.201]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Mar 2021 03:03:40 -0800 To: Ajit Khaparde , dev@dpdk.org References: <590c4af0-9650-3ccc-c758-51c434bb8f1e@intel.com> <20210305194232.45026-1-ajit.khaparde@broadcom.com> From: Ferruh Yigit X-User: ferruhy Message-ID: <87e8c537-a044-43ae-95fe-a8cfe6a2b11d@intel.com> Date: Mon, 8 Mar 2021 11:03:36 +0000 MIME-Version: 1.0 In-Reply-To: <20210305194232.45026-1-ajit.khaparde@broadcom.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH v3] 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 7:42 PM, 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 Reviewed-by: Ferruh Yigit Applied to dpdk-next-net/main, thanks.