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>
This commit is contained in:
John Lo
2016-03-03 12:13:11 -05:00
committed by Gerrit Code Review
parent 8a33f31baa
commit 73f7ef8ab7
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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));