* [dpdk-dev] [PATCH] app/testpmd: add link autoneg status display
@ 2021-04-15 6:45 Min Hu (Connor)
2021-04-19 2:31 ` Li, Xiaoyun
0 siblings, 1 reply; 3+ messages in thread
From: Min Hu (Connor) @ 2021-04-15 6:45 UTC (permalink / raw)
To: dev; +Cc: ferruh.yigit, xiaoyun.li
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dpdk-dev] [PATCH] app/testpmd: add link autoneg status display
2021-04-15 6:45 [dpdk-dev] [PATCH] app/testpmd: add link autoneg status display Min Hu (Connor)
@ 2021-04-19 2:31 ` Li, Xiaoyun
2021-04-19 15:56 ` Ferruh Yigit
0 siblings, 1 reply; 3+ messages in thread
From: Li, Xiaoyun @ 2021-04-19 2:31 UTC (permalink / raw)
To: Min Hu (Connor), dev; +Cc: Yigit, Ferruh
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>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dpdk-dev] [PATCH] app/testpmd: add link autoneg status display
2021-04-19 2:31 ` Li, Xiaoyun
@ 2021-04-19 15:56 ` Ferruh Yigit
0 siblings, 0 replies; 3+ messages in thread
From: Ferruh Yigit @ 2021-04-19 15:56 UTC (permalink / raw)
To: Li, Xiaoyun, Min Hu (Connor), dev
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-04-19 15:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-15 6:45 [dpdk-dev] [PATCH] app/testpmd: add link autoneg status display Min Hu (Connor)
2021-04-19 2:31 ` Li, Xiaoyun
2021-04-19 15:56 ` Ferruh Yigit
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).