diff mbox series

app/testpmd: add link autoneg status display

Message ID 1618469115-55992-1-git-send-email-humin29@huawei.com (mailing list archive)
State Accepted
Delegated to: Ferruh Yigit
Headers show
Series app/testpmd: add link autoneg status display | expand

Checks

Context Check Description
ci/iol-intel-Performance success Performance Testing PASS
ci/intel-Testing success Testing PASS
ci/iol-abi-testing warning Testing issues
ci/github-robot success github build: passed
ci/Intel-compilation success Compilation OK
ci/travis-robot success travis build: passed
ci/checkpatch success coding style OK

Commit Message

Min Hu (Connor) April 15, 2021, 6:45 a.m. UTC
From: Huisong Li <lihuisong@huawei.com>

This patch adds link autoneg status display in port_infos_display().

Signed-off-by: Huisong Li <lihuisong@huawei.com>
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
---
 app/test-pmd/config.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Li, Xiaoyun April 19, 2021, 2:31 a.m. UTC | #1
Hi

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

Applied to dpdk-next-net/main, thanks.
diff mbox series

Patch

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);