Skip to contentSkip to conversation

app/testpmd: report minimum and maximum MTU

PATCH Applied Dariusz Sosnowski 2 participants 2 messages Jul 16, 2025 – Jul 22, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 app/testpmd: report minimum and maximum MTU

Add reporting of minimum and maximum allowed MTU on a given port to "show port info <id>" command.

---

This patch allowed simpler testing of mlx5 patch:
https://patches.dpdk.org/project/dpdk/patch/[email protected]/

 app/test-pmd/config.c | 2 ++
 1 file changed, 2 insertions(+)
app/test-pmd/config.c +2 -0
index 0fda8e99f8..08048da6f8 100644
@@ -852,6 +852,8 @@ port_infos_display(portid_t port_id)
 
 	if (!rte_eth_dev_get_mtu(port_id, &mtu))
 		printf("MTU: %u\n", mtu);
+	printf("Minimum MTU: %u\n", dev_info.min_mtu);
+	printf("Maximum MTU: %u\n", dev_info.max_mtu);
 
 	printf("Promiscuous mode: %s\n",
 	       rte_eth_promiscuous_get(port_id) ? "enabled" : "disabled");

--
2.39.5