git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
701e0bf
)
net/sfc: set min and max MTU
author
Andrew Rybchenko
<arybchenko@solarflare.com>
Mon, 8 Apr 2019 14:04:05 +0000
(15:04 +0100)
committer
Ferruh Yigit
<ferruh.yigit@intel.com>
Fri, 12 Apr 2019 09:02:02 +0000
(11:02 +0200)
Advertise minimum and maximum MTU value in device information.
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
drivers/net/sfc/sfc_ethdev.c
patch
|
blob
|
history
diff --git
a/drivers/net/sfc/sfc_ethdev.c
b/drivers/net/sfc/sfc_ethdev.c
index
6c33601
..
ff19231
100644
(file)
--- 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 */