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 44CC4A0524; Mon, 19 Apr 2021 17:56:51 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C795B4130F; Mon, 19 Apr 2021 17:56:50 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mails.dpdk.org (Postfix) with ESMTP id D7AF6412E6 for ; Mon, 19 Apr 2021 17:56:49 +0200 (CEST) IronPort-SDR: Uozq7pA2utI990hcT4b0+SLM4a8QeP+aU1BHlFhC6zCA6g453+8YJwtGxCTHIq+FTrXkjjo/sv vfhHcSefIsdw== X-IronPort-AV: E=McAfee;i="6200,9189,9959"; a="182483738" X-IronPort-AV: E=Sophos;i="5.82,234,1613462400"; d="scan'208";a="182483738" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Apr 2021 08:56:48 -0700 IronPort-SDR: KAy938bvIypYKLzRlLq+KPiJfGfvbgBGNPubJMye/SqsrvpFB5iJhdsWIj1bZTzil9kGlZGAmx b55wnpueufmg== X-IronPort-AV: E=Sophos;i="5.82,234,1613462400"; d="scan'208";a="462784059" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.213.220.224]) ([10.213.220.224]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Apr 2021 08:56:47 -0700 To: "Li, Xiaoyun" , "Min Hu (Connor)" , "dev@dpdk.org" References: <1618469115-55992-1-git-send-email-humin29@huawei.com> From: Ferruh Yigit X-User: ferruhy Message-ID: <4759ace3-a788-3cc0-a5f4-e46292c26471@intel.com> Date: Mon, 19 Apr 2021 16:56:43 +0100 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH] app/testpmd: add link autoneg status display 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/19/2021 3:31 AM, Li, Xiaoyun wrote: > Hi > >> -----Original Message----- >> From: Min Hu (Connor) >> Sent: Thursday, April 15, 2021 14:45 >> To: dev@dpdk.org >> Cc: Yigit, Ferruh ; Li, Xiaoyun >> Subject: [PATCH] app/testpmd: add link autoneg status display >> >> From: Huisong Li >> >> This patch adds link autoneg status display in port_infos_display(). >> >> Signed-off-by: Huisong Li >> Signed-off-by: Min Hu (Connor) >> --- >> app/test-pmd/config.c | 2 ++ >> 1 file changed, 2 insertions(+) >> >> diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c index >> 40b2b29..0dd6a6f 100644 >> --- a/app/test-pmd/config.c >> +++ b/app/test-pmd/config.c >> @@ -619,6 +619,8 @@ port_infos_display(portid_t port_id) >> printf("Link speed: %s\n", rte_eth_link_speed_to_str(link.link_speed)); >> printf("Link duplex: %s\n", (link.link_duplex == >> ETH_LINK_FULL_DUPLEX) ? >> ("full-duplex") : ("half-duplex")); >> +printf("Autoneg status: %s\n", (link.link_autoneg == >> ETH_LINK_AUTONEG) ? >> + ("On") : ("Off")); >> >> if (!rte_eth_dev_get_mtu(port_id, &mtu)) >> printf("MTU: %u\n", mtu); >> -- >> 2.7.4 > > Acked-by: Xiaoyun Li > Applied to dpdk-next-net/main, thanks.