From fd2a9392411147654dad43f93741a1aa634187b5 Mon Sep 17 00:00:00 2001 From: Justin Pettit Date: Tue, 14 Sep 2010 08:36:55 -0700 Subject: [PATCH] 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 --- datapath/vport-patch.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/datapath/vport-patch.c b/datapath/vport-patch.c index d55a1bf2d..62fd71f79 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; -- 2.43.0