Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp5853677ybp; Tue, 8 Oct 2019 09:14:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqzScCqpIHs8KFOrb2nmQCOaHPpFwnbJAzwdJtjH1Yzw0S0ZTlkzwPs+Nu2oDAlcMv+IOSe9 X-Received: by 2002:a05:6402:782:: with SMTP id d2mr34330373edy.296.1570551290031; Tue, 08 Oct 2019 09:14:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570551290; cv=none; d=google.com; s=arc-20160816; b=vgPFB3IgsRk+w3kLAoc03kpp+n0dwRFfQuD5BcMRtFsxIyKyqiev9ER3DPmr71Xi8n FxauThtBd3gXqxNdQx2g/0ScmInJLxxWRLyfdBv3p6nblUPTt8Vj6kQlQ0THVG91OtqU YHPF6Dv2CGx15mHAk2jRe5rxHRTOCGNxOJTYDHsdP4o4vkdDba92gVtjW1ihwFG2cWub M0hYUyVW5e3s2dNcN6vMqZvPOPWvfw278QQciMM7ypFALa0jspka62eM3yDZN7NpyTb2 A8sDlf/gPdZRnoOrt6zJoY9WfcYThv1QgWRsG8PDDTohkbxBQRzLaPZ0zrFJb9VxijxO NIdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=h9OB7Yk9goI+UzOkxyLvvhXJ7MAQ379CvgaFUxSopZw=; b=gvYe9gdj6XmnYh9WpW2qm9VE8bU3mDONgzzU4j1bxQXXTwGfEDd9jdSWu8kY/PsO7m z7woRHkkYTmGOT8BknwD6VNsKQ85p112yH8MP61f7t1CdASzqTlakzG0kQ+N/lgD/H65 mHrZzAuTmeyUg5W56jxIO7Ui0paPr1RHCDPxLjTrlon7ctbLAD+rYLbeU6g+ZlnpWcl3 4CTTAnygQlJEjTojLwrwoSTuttgR9c63oU0GgNs/MEhbQwB4IVeFcdY1lF41m79PK/3s t2rcnETpRYZF4DJa/VSP5/+5XBPjLWDw0JQvLQaLdwJq6HUJbZ8jVjVXYtupT6K1Z2zo dMBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Cvu49PSP; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u8si9199493ejt.219.2019.10.08.09.14.24; Tue, 08 Oct 2019 09:14:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Cvu49PSP; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728187AbfJHQOJ (ORCPT + 99 others); Tue, 8 Oct 2019 12:14:09 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:44995 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725989AbfJHQOJ (ORCPT ); Tue, 8 Oct 2019 12:14:09 -0400 Received: by mail-pg1-f196.google.com with SMTP id u12so2159918pgb.11; Tue, 08 Oct 2019 09:14:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=h9OB7Yk9goI+UzOkxyLvvhXJ7MAQ379CvgaFUxSopZw=; b=Cvu49PSPRSV3frD32/kcP2m7fxOSMEyZJvINAWGErwan5nIXONWLGw3Vc8kN2tfWUk +3L8Dd8fosSyGosULR6NZJ8B+orK2EgxLTq2wDYIG4kgD4nY5oYtTDDmyy7AUEN6ffXi DUonMG6MCMsmI/GV36K2LZ6G9zvydnmg/oQ1cQ1UlABLucD2Z4DxyskXlqopKA5B4IBt PoKD14/W9zjUAh4rqsz2bAaRd72iBVuL5Q2kfhIQ1krF0VRfHeeuJRyrAShNPg8TOLhx AYE27kXmZ7gwRe/MSqfeOCJQ8Q0jBVqXL2xWGOdufq2XbQJy2t2uEEyorcoBIRoGI6UP UHpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=h9OB7Yk9goI+UzOkxyLvvhXJ7MAQ379CvgaFUxSopZw=; b=qJ9Pe+c+gSFQLYYZfYFXB7vmJJjaMZMO6W6QBPCen1ERoGlXYjp5yfEsffljoBZ4ty BK5Ieep+Tqvby2LjoIrWCNM7AjJpopb6RHEZLjnwlUJzmu67WDDqnRr5uMl9psaCHEGe fmgiUQ6kqLw/A1c0sMWYzG5yeAgyrBDRbVltonZhHhHEPabZQ4S9TaBF16RrU9nOFVa9 wN5vaKXgphasb/jy8oPxj/iTgvJEYPneD1LyXvv870VClGOgEDVIlIhP/HqXUubDsCE3 QOyoxawLDvx9EOk6Oj75+NELNCKD+db82Bx9h2ra656Os/1CBf1YCXuopN8hNkn6AJZ4 5HYA== X-Gm-Message-State: APjAAAXkjATckx2nwhnXTpVnBFxL+Hk1Jdvtn4m0yAYjHGMEv9rKGw6l kS5mrW5eL0GVbsffojqAMAuTO1wIsV0= X-Received: by 2002:a63:1749:: with SMTP id 9mr5280034pgx.212.1570551248451; Tue, 08 Oct 2019 09:14:08 -0700 (PDT) Received: from gmail.com (c-76-21-95-192.hsd1.ca.comcast.net. [76.21.95.192]) by smtp.gmail.com with ESMTPSA id j24sm17416469pff.71.2019.10.08.09.14.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 08 Oct 2019 09:14:07 -0700 (PDT) Date: Tue, 8 Oct 2019 09:14:03 -0700 From: William Tu To: Haishuang Yan Cc: "David S. Miller" , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] ip6erspan: remove the incorrect mtu limit for ip6erspan Message-ID: <20191008161403.GB118819@gmail.com> References: <1570528563-8062-1-git-send-email-yanhaishuang@cmss.chinamobile.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1570528563-8062-1-git-send-email-yanhaishuang@cmss.chinamobile.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 08, 2019 at 05:56:03PM +0800, Haishuang Yan wrote: > ip6erspan driver calls ether_setup(), after commit 61e84623ace3 > ("net: centralize net_device min/max MTU checking"), the range > of mtu is [min_mtu, max_mtu], which is [68, 1500] by default. > > It causes the dev mtu of the erspan device to not be greater > than 1500, this limit value is not correct for ip6erspan tap > device. > > Signed-off-by: Haishuang Yan Thanks for the patch. Acked-by: William Tu > --- > net/ipv6/ip6_gre.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/net/ipv6/ip6_gre.c b/net/ipv6/ip6_gre.c > index d5779d6..787d9f2 100644 > --- a/net/ipv6/ip6_gre.c > +++ b/net/ipv6/ip6_gre.c > @@ -2192,6 +2192,7 @@ static void ip6erspan_tap_setup(struct net_device *dev) > { > ether_setup(dev); > > + dev->max_mtu = 0; > dev->netdev_ops = &ip6erspan_netdev_ops; > dev->needs_free_netdev = true; > dev->priv_destructor = ip6gre_dev_free; > -- > 1.8.3.1 > > >