Skip to contentSkip to conversation

app/testpmd: add link autoneg status display

PATCH Applied Min Hu (Connor) 3 participants 3 messages Apr 15, 2021 – Apr 19, 2021

lore
Share & tools
lore
#0 lore raw

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
index 40b2b29..0dd6a6f 100644
@@ -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
Acked-by on v1 1/1
#1 lore raw

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 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 index renamed from app/test-pmd/config.c +0 -0

40b2b29..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

Applied
#2 lore raw
Quoted 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 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 index renamed from app/test-pmd/config.c +0 -0

40b2b29..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.4

Applied to dpdk-next-net/main, thanks.