DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH] app/testpmd: report minimum and maximum MTU
@ 2025-07-16 10:28 Dariusz Sosnowski
  0 siblings, 0 replies; only message in thread
From: Dariusz Sosnowski @ 2025-07-16 10:28 UTC (permalink / raw)
  To: Aman Singh; +Cc: dev, Viacheslav Ovsiienko

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

Signed-off-by: Dariusz Sosnowski <dsosnowski@nvidia.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
---

This patch allowed simpler testing of mlx5 patch:
https://patches.dpdk.org/project/dpdk/patch/20250716102546.1118749-1-dsosnowski@nvidia.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 0fda8e99f8..08048da6f8 100644
--- a/app/test-pmd/config.c
+++ b/app/test-pmd/config.c
@@ -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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-07-16 10:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-07-16 10:28 [PATCH] app/testpmd: report minimum and maximum MTU Dariusz Sosnowski

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).