DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] net/sfc: set min and max MTU
@ 2019-04-08 14:04 Andrew Rybchenko
  2019-04-08 14:04 ` Andrew Rybchenko
  2019-04-08 17:12 ` Ferruh Yigit
  0 siblings, 2 replies; 4+ messages in thread
From: Andrew Rybchenko @ 2019-04-08 14:04 UTC (permalink / raw)
  To: dev

Advertise minimum and maximum MTU value in device information.

Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
---
 drivers/net/sfc/sfc_ethdev.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/net/sfc/sfc_ethdev.c b/drivers/net/sfc/sfc_ethdev.c
index 6c33601e7..ff192314d 100644
--- a/drivers/net/sfc/sfc_ethdev.c
+++ b/drivers/net/sfc/sfc_ethdev.c
@@ -14,6 +14,7 @@
 #include <rte_bus_pci.h>
 #include <rte_errno.h>
 #include <rte_string_fns.h>
+#include <rte_ether.h>
 
 #include "efx.h"
 
@@ -92,6 +93,9 @@ sfc_dev_infos_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info)
 
 	sfc_log_init(sa, "entry");
 
+	dev_info->min_mtu = ETHER_MIN_MTU;
+	dev_info->max_mtu = EFX_MAC_SDU_MAX;
+
 	dev_info->max_rx_pktlen = EFX_MAC_PDU_MAX;
 
 	/* Autonegotiation may be disabled */
-- 
2.17.1

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-04-08 17:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-08 14:04 [dpdk-dev] [PATCH] net/sfc: set min and max MTU Andrew Rybchenko
2019-04-08 14:04 ` Andrew Rybchenko
2019-04-08 17:12 ` Ferruh Yigit
2019-04-08 17:12   ` Ferruh Yigit

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