aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/ethernet/init.c
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2020-02-26 10:27:08 -0500
committerFlorin Coras <florin.coras@gmail.com>2020-02-26 18:50:35 +0000
commit5fa4525543b212dd04b4f687722bf7feb1eeb6f9 (patch)
treeacbfb597680d6c2b1102f570b92d28e39afb5e30 /src/vnet/ethernet/init.c
parent2fcd265d383a17e74b7d51f26e81bd27f830bf6b (diff)
ethernet: configure system default ethernet MTU
Type: feature Signed-off-by: Dave Barach <dave@barachs.net> Change-Id: I9c2081c56cfbf61df7e5170002f5f65902f49942
Diffstat (limited to 'src/vnet/ethernet/init.c')
-rw-r--r--src/vnet/ethernet/init.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/vnet/ethernet/init.c b/src/vnet/ethernet/init.c
index 9fd95f1b75a..f78b65c7cc0 100644
--- a/src/vnet/ethernet/init.c
+++ b/src/vnet/ethernet/init.c
@@ -88,6 +88,11 @@ ethernet_init (vlib_main_t * vm)
em->type_info_by_name = hash_create_string (0, sizeof (uword));
em->type_info_by_type = hash_create (0, sizeof (uword));
+ /*
+ * System default ethernet interface MTU, configure via ethernet_config in
+ * interface.c if desired.
+ */
+ em->default_mtu = 9000;
#define ethernet_type(n,s) add_type (em, ETHERNET_TYPE_##s, #s);
#include "types.def"