[ovs-dev] [PATCH] datapath: Increase default MTU on patch ports
Justin Pettit
jpettit at nicira.com
Tue Sep 14 08:43:48 PDT 2010
The default MTU on patch ports was 1500, which would cause jumbo frames
to get dropped between the ends of the patch. It also dropped the MTU
of attached bridges to no more that 1500 bytes. This patch increases
the default MTU to 65535. Long term, we should eliminate MTU on patch
ports entirely.
---
datapath/vport-patch.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/datapath/vport-patch.c b/datapath/vport-patch.c
index d55a1bf..71806b2 100644
--- a/datapath/vport-patch.c
+++ b/datapath/vport-patch.c
@@ -136,7 +136,10 @@ static struct vport *patch_create(const char *name, const void __user *config)
}
vport_gen_rand_ether_addr(patch_vport->devconf->eth_addr);
- patch_vport->devconf->mtu = ETH_DATA_LEN;
+
+ /* Make the default MTU fairly large so that it doesn't become the
+ * bottleneck an systems using jumbo frames. */
+ patch_vport->devconf->mtu = 65535;
return vport;
--
1.7.1
More information about the dev
mailing list