Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp7485494ybn; Mon, 30 Sep 2019 14:48:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqzmTzNXIeyhfjONh4ymA4tjrWLL50oK7UkSn8yG1beD4PBpslWB0W8zH2fVbc4bD8w3pCGj X-Received: by 2002:a17:906:c721:: with SMTP id fj1mr20884097ejb.177.1569880110588; Mon, 30 Sep 2019 14:48:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569880110; cv=none; d=google.com; s=arc-20160816; b=wwhvAQ7lo3BMHhxRgB8Kn5329p+B3EGXgoYL/y5L0b7REsVE/Ggs+sUw8bSEcjJ+h4 7X95kHhkxmMUpkmySuPEkba4EA2Xs4rlhwpA8XXRI/IB8bgg1xODf7uhgPfKdTQSOjWM 4N2ivqwtK3gtxgsWMtM1mCGo/anqitoN1ZMIAcrOHSBmufoCqbfP5pQVO5AAOsBmXf5J s2WcNj9clwqRtq+2H35ZdTETsuWdzy+yud5X3pDTfR1/OtDx322u02qRZZbOVD2Rq1Pg fO1qEswUhn1ypadkz0VWRV3hUvgrTNS9KlI42NXDNr5gA5PtyGAXedaG4zl5nxMhcVcg /Vkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=zSHs7w6eLJv+rMVa9ygdOnMTMTUxT6mNsgkh7K5503I=; b=UjoIFtcKbfhdkN6nOgv7mA4nNN6xCfaKn/gbmRt7wrkkxkKwIqffo9XeYXIQZkCVjb ihJeN5oWo6zFliCsOEs9hqqAQaZEOV+q/69f2aPvp5IrX52GpNpjJ4+WtbErykPY3jxT /1EkE0G4Gdch09t3gIWfv4jIJT34dGBptDXQYO8NvQlWhXxXKK1ZQBzKFIrqs0T+B/IY 4yJIwXZM8Wn9faEDxtnGTpRfPO1gi0a6t+ty+6hNjIQuFLkW2PJX93/4/HX92t4Z9CPD BwqwerERZTMqM6BP0w/N5o33K3qnhFbOM69uZLFF0jOk1MUOb35kzVTpMqTV+2E+sKll 2KAQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e5si8504704ede.150.2019.09.30.14.48.05; Mon, 30 Sep 2019 14:48:30 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731624AbfI3VqZ (ORCPT + 99 others); Mon, 30 Sep 2019 17:46:25 -0400 Received: from shards.monkeyblade.net ([23.128.96.9]:39190 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726789AbfI3VqZ (ORCPT ); Mon, 30 Sep 2019 17:46:25 -0400 Received: from localhost (unknown [IPv6:2601:601:9f00:1e2::3d5]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 3E4D9154361F3; Mon, 30 Sep 2019 11:11:08 -0700 (PDT) Date: Mon, 30 Sep 2019 11:11:07 -0700 (PDT) Message-Id: <20190930.111107.199335405812556676.davem@davemloft.net> To: yanhaishuang@cmss.chinamobile.com Cc: u9012063@gmail.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] erspan: remove the incorrect mtu limit for erspan From: David Miller In-Reply-To: <1569567500-20113-1-git-send-email-yanhaishuang@cmss.chinamobile.com> References: <1569567500-20113-1-git-send-email-yanhaishuang@cmss.chinamobile.com> X-Mailer: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Mon, 30 Sep 2019 11:11:08 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Haishuang Yan Date: Fri, 27 Sep 2019 14:58:20 +0800 > erspan 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 ipgre tap device. > > Tested: > Before patch: > # ip link set erspan0 mtu 1600 > Error: mtu greater than device maximum. > After patch: > # ip link set erspan0 mtu 1600 > # ip -d link show erspan0 > 21: erspan0@NONE: mtu 1600 qdisc noop state DOWN > mode DEFAULT group default qlen 1000 > link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff promiscuity 0 minmtu 68 maxmtu 0 > > Fixes: 61e84623ace3 ("net: centralize net_device min/max MTU checking") > Signed-off-by: Haishuang Yan Applied and queued up for -stable.