summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Lo <loj@cisco.com>2016-03-03 12:13:11 -0500
committerGerrit Code Review <gerrit@fd.io>2016-03-03 19:29:31 +0000
commit73f7ef8ab714464c477de5bd3938b976c01d37cf (patch)
tree4dd7ebb95c46208aa4e73854b67fe75406f799ba
parent8a33f31baa37aae175dd5f0a43283ef513c7716f (diff)
Change default L3 MTU to allow jumbo packets for non-DPDK interfaces.
Note that L3 MTU for DPDK interfaces is derived from DPDK port_conf in vnet/devices/dpdk/init.c. Change-Id: I9633a1887347a18d05598435baceb6a62cd7b19a Signed-off-by: John Lo <loj@cisco.com>
-rw-r--r--vnet/vnet/ethernet/interface.c2
-rw-r--r--vnet/vnet/gre/interface.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/vnet/vnet/ethernet/interface.c b/vnet/vnet/ethernet/interface.c
index fe7eb76bf46..1f7276ee7d8 100644
--- a/vnet/vnet/ethernet/interface.c
+++ b/vnet/vnet/ethernet/interface.c
@@ -186,7 +186,7 @@ ethernet_register_interface (vnet_main_t * vnm,
/* preamble */ 8 + /* inter frame gap */ 12;
/* Standard default ethernet MTU. */
- hi->max_l3_packet_bytes[VLIB_RX] = hi->max_l3_packet_bytes[VLIB_TX] = 1500;
+ hi->max_l3_packet_bytes[VLIB_RX] = hi->max_l3_packet_bytes[VLIB_TX] = 9000;
memcpy (ei->address, address, sizeof (ei->address));
vec_free (hi->hw_address);
diff --git a/vnet/vnet/gre/interface.c b/vnet/vnet/gre/interface.c
index 72ce0962fc7..0eb395bbbe6 100644
--- a/vnet/vnet/gre/interface.c
+++ b/vnet/vnet/gre/interface.c
@@ -68,7 +68,7 @@ gre_register_interface (vnet_main_t * vnm,
/* preamble */ 8 + /* inter frame gap */ 12;
/* Standard default gre MTU. */
- hi->max_l3_packet_bytes[VLIB_RX] = hi->max_l3_packet_bytes[VLIB_TX] = 1500;
+ hi->max_l3_packet_bytes[VLIB_RX] = hi->max_l3_packet_bytes[VLIB_TX] = 9000;
memcpy (&t->tunnel_src, tunnel_src, sizeof (t->tunnel_src));
memcpy (&t->tunnel_dst, tunnel_dst, sizeof (t->tunnel_dst));