Hi

> -----Original Message-----
> From: Min Hu (Connor) <humi...@huawei.com>
> Sent: Thursday, April 15, 2021 14:45
> To: dev@dpdk.org
> Cc: Yigit, Ferruh <ferruh.yi...@intel.com>; Li, Xiaoyun <xiaoyun...@intel.com>
> Subject: [PATCH] app/testpmd: add link autoneg status display
> 
> From: Huisong Li <lihuis...@huawei.com>
> 
> This patch adds link autoneg status display in port_infos_display().
> 
> Signed-off-by: Huisong Li <lihuis...@huawei.com>
> Signed-off-by: Min Hu (Connor) <humi...@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...@intel.com>

Reply via email to