Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4991523ybg; Mon, 21 Oct 2019 18:30:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqwVKBJ3w/t2lRhIg79+z/cycHDlSJVnKcV8SzDj2wbCFDU3JHWRG1eMimqi7yoDgEs7UYbr X-Received: by 2002:a50:ed01:: with SMTP id j1mr28440636eds.111.1571707841752; Mon, 21 Oct 2019 18:30:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571707841; cv=none; d=google.com; s=arc-20160816; b=xuwh3M6eV68djA/Jua/gNjVcFRzVfCoMdjSMoWPgpMCPQ/x2cY3mEOwvvugDeaB8Aj X67vsA3qa+uHJvxBZPXGij5uo3zM8EqlSD6t2qB5Rr6DZ6mkc7udDoHDQ5L9jQCo4fRt bl8D2Q2t/O4LjTdhUFFmSO8r0eKSd8ow3GPpmzsyDg6aC44Ip0mI/OokFvD63uu7yubA ZuW8ICTMVspGQf0cL5AHhES+uoXEqvU9+DdvPi/RZEneaIj5BC/fIl5XAQjMg+gZ9pbB tUch8A4yUvv2tqUpO+TRsCwieELmFw8MuZjicNnKXRed8W9NPjIDO7y2NH9uvwuc39yr QY0Q== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=xTr7szo/kcO0uyEQhrc4wO2OcIM1XEdChyJQb81tCco=; b=rfYe5gpb9PTy9IuroRzvhMkOrImshhWnwZmu1c0maxx9cpvMRaEIlgfVO4dOMU7h1m Wy6jVTSl3BVSj1vMTBSgpuN3hYAX2gxHhD0Bf+W1DtHaBjnPWohRhypI6D80R2jMlmPy 09hq5JrLGVQ5v6l7mOy2J+2JtkOmDbzsbzMOMPLLXrNtGLu3/32rkMIbc5vOYxXC2Ev5 +ZwVsnNCjoSbuUD/ZVwJOOf+dSv7Y3lywo5VmhIoMr3qjuPkvVDA8Owo76vw4vrti5mN FoclR2z+aQqN2HqIqCzaAd8aUm1jtfbYApihuYwdJU7YHkM5LxAwH63hT5qlEdzhadg9 ju6w== 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 k1si3712636eji.76.2019.10.21.18.30.17; Mon, 21 Oct 2019 18:30:41 -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 S1730568AbfJVB2r (ORCPT + 99 others); Mon, 21 Oct 2019 21:28:47 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:56574 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728375AbfJVB2q (ORCPT ); Mon, 21 Oct 2019 21:28:46 -0400 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 50F3582028846B661488; Tue, 22 Oct 2019 09:28:43 +0800 (CST) Received: from [127.0.0.1] (10.74.191.121) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.439.0; Tue, 22 Oct 2019 09:28:40 +0800 Subject: Re: [PATCH RFC] net: vlan: reverse 4 bytes of vlan header when setting initial MTU To: David Laight , "davem@davemloft.net" CC: "dsahern@gmail.com" , "jiri@mellanox.com" , "allison@lohutok.net" , "mmanning@vyatta.att-mail.com" , "petrm@mellanox.com" , "dcaratti@redhat.com" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" References: <1571660763-117936-1-git-send-email-linyunsheng@huawei.com> <8f07f4aad98e44358b92e1e340df131f@AcuMS.aculab.com> From: Yunsheng Lin Message-ID: <710cc020-f411-38ad-a9c4-3f44957645f5@huawei.com> Date: Tue, 22 Oct 2019 09:28:40 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.0 MIME-Version: 1.0 In-Reply-To: <8f07f4aad98e44358b92e1e340df131f@AcuMS.aculab.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.74.191.121] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019/10/21 22:46, David Laight wrote: > From: Yunsheng Lin >> Sent: 21 October 2019 13:26 >> Currently the MTU of vlan netdevice is set to the same MTU >> of the lower device, which requires the underlying device >> to handle it as the comment has indicated: >> >> /* need 4 bytes for extra VLAN header info, >> * hope the underlying device can handle it. >> */ >> new_dev->mtu = real_dev->mtu; >> >> Currently most of the physical netdevs seems to handle above >> by reversing 2 * VLAN_HLEN for L2 packet len. > > s/reverse/reserve/g Thanks. > > - > Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK > Registration No: 1397386 (Wales) > > > . >