From: "Li, Xiaoyun" <xiaoyun.li@intel.com>
To: "Min Hu (Connor)" <humin29@huawei.com>, "dev@dpdk.org" <dev@dpdk.org>
Cc: "Yigit, Ferruh" <ferruh.yigit@intel.com>
Subject: Re: [dpdk-dev] [PATCH] app/testpmd: add link autoneg status display
Date: Mon, 19 Apr 2021 02:31:35 +0000 [thread overview]
Message-ID: <DM4PR11MB55342B1BAEE07A11253A493F99499@DM4PR11MB5534.namprd11.prod.outlook.com> (raw)
In-Reply-To: <1618469115-55992-1-git-send-email-humin29@huawei.com>
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>
next prev parent reply other threads:[~2021-04-19 2:31 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-15 6:45 Min Hu (Connor)
2021-04-19 2:31 ` Li, Xiaoyun [this message]
2021-04-19 15:56 ` Ferruh Yigit
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DM4PR11MB55342B1BAEE07A11253A493F99499@DM4PR11MB5534.namprd11.prod.outlook.com \
--to=xiaoyun.li@intel.com \
--cc=dev@dpdk.org \
--cc=ferruh.yigit@intel.com \
--cc=humin29@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).