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
committed by
Gerrit Code Review
parent
8a33f31baa
commit
73f7ef8ab7
@ -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);
|
||||
|
@ -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));
|
||||
|
Reference in New Issue
Block a user