[dpdk-dev] [PATCH] app/testpmd: add link autoneg status display

Ferruh Yigit ferruh.yigit at intel.com
Mon Apr 19 17:56:43 CEST 2021


On 4/19/2021 3:31 AM, Li, Xiaoyun wrote:
> Hi
> 
>> -----Original Message-----
>> From: Min Hu (Connor) <humin29 at huawei.com>
>> Sent: Thursday, April 15, 2021 14:45
>> To: dev at dpdk.org
>> Cc: Yigit, Ferruh <ferruh.yigit at intel.com>; Li, Xiaoyun <xiaoyun.li at intel.com>
>> Subject: [PATCH] app/testpmd: add link autoneg status display
>>
>> From: Huisong Li <lihuisong at huawei.com>
>>
>> This patch adds link autoneg status display in port_infos_display().
>>
>> Signed-off-by: Huisong Li <lihuisong at huawei.com>
>> Signed-off-by: Min Hu (Connor) <humin29 at huawei.com>
>> ---
>>   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 <xiaoyun.li at intel.com>
> 

Applied to dpdk-next-net/main, thanks.


More information about the dev mailing list