From: Justin Pettit Date: Tue, 14 Sep 2010 15:36:55 +0000 (-0700) Subject: datapath: Increase default MTU on patch ports X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd2a9392411147654dad43f93741a1aa634187b5;p=openvswitch datapath: Increase default MTU on patch ports 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. Signed-off-by: Justin Pettit --- diff --git a/datapath/vport-patch.c b/datapath/vport-patch.c index d55a1bf2..62fd71f7 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 on systems using jumbo frames. */ + patch_vport->devconf->mtu = 65535; return vport;