app/testpmd: add link autoneg status display
PATCH 1/1 app/testpmd: add link autoneg status display
From: Huisong Li <[email protected]>
This patch adds link autoneg status display in port_infos_display().
--- app/test-pmd/config.c | 2 ++ 1 file changed, 2 insertions(+)
app/test-pmd/config.c +2 -0
@@ -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);
Signature · 1 line
2.7.4
Hi
Quoted 33 lines
-----Original Message-----
From: Min Hu (Connor) <[email protected]>
Sent: Thursday, April 15, 2021 14:45
To: [email protected]
Cc: Yigit, Ferruh <[email protected]>; Li, Xiaoyun <[email protected]>
Subject: [PATCH] app/testpmd: add link autoneg status displayFrom: Huisong Li <[email protected]>
This patch adds link autoneg status display in
port_infos_display().Signed-off-by Huisong Li <[email protected]>Signed-off-by Min Hu (Connor) <[email protected]>--- app/test-pmd/config.c | 2 ++ 1 file changed, 2 insertions(+)app/test-pmd/config.c index renamed from app/test-pmd/config.c +0
-040b2b29..0dd6a6f 100644
app/test-pmd/config.c +0
-0@@ -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) ?app/test-pmd/config.c +1
-0("full-duplex") : ("half-duplex")); + printf("Autoneg status: %s\n", (link.link_autoneg ==
ETH_LINK_AUTONEG) ?app/test-pmd/config.c +1
-1+ ("On") : ("Off"));if (!rte_eth_dev_get_mtu (port_id, &mtu))printf ("MTU: %u\n" , mtu); --
Quoted 1 line
2.7.4
Ferruh Yigit
AppliedQuoted 32 lines · Xiaoyun
Hi
Quoted 30 lines
-----Original Message-----
From: Min Hu (Connor) <[email protected]>
Sent: Thursday, April 15, 2021 14:45
To: [email protected]
Cc: Yigit, Ferruh <[email protected]>; Li, Xiaoyun <[email protected]>
Subject: [PATCH] app/testpmd: add link autoneg status displayFrom: Huisong Li <[email protected]>
This patch adds link autoneg status display in
port_infos_display().Signed-off-by Huisong Li <[email protected]>Signed-off-by Min Hu (Connor) <[email protected]>--- app/test-pmd/config.c | 2 ++ 1 file changed, 2 insertions(+)app/test-pmd/config.c index renamed from app/test-pmd/config.c +0
-040b2b29..0dd6a6f 100644
app/test-pmd/config.c +0
-0@@ -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"));
Quoted 7 lines
Quoted 4 lines
if (!rte_eth_dev_get_mtu(port_id, &mtu))
printf("MTU: %u\n", mtu);
--
2.7.4Acked-by Xiaoyun Li <[email protected]>
Applied to dpdk-next-net/main, thanks.