Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp5047937ybg; Mon, 21 Oct 2019 19:48:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqwFzAAH/EYLw3LPyW6elfHy6JUHMVoEv3WxrSw/QVWDmZ9UTYFicdJsBkUKpRE+tpHZMPO+ X-Received: by 2002:a50:fb0d:: with SMTP id d13mr5323618edq.200.1571712524466; Mon, 21 Oct 2019 19:48:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571712524; cv=none; d=google.com; s=arc-20160816; b=nq7wtWF64pOQQxhsYHeS3TXe8b6DErPZ7NEQgeBH/I+zoziBiObsc5EKHgfs+coaD7 OfoEhCsN72NmSqxGhwDkVVl9DGP2Omw6V9+Ckt8u0wzsO3nn8GCNFuy1rCZaDIaxwami sZLgGQ1GIv1LtzeDSGFnkKm8C+1ujbCNH6gazoV1w7afTgGNQkomrgyZPd6jU2Xt6S0r 15AfQfL68/+lITBOVLjupTnvSeAO8iLudqHupylINT+iJAAOFg+SpkLtA5/YmIa5WkVk rYIsZTMW+O56SyhA2ms9OzoJim5QO3v7L2H9gPIwptLRP4P4BAWiibvtuNGs4jrKMU7X PcdQ== 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:dkim-signature; bh=WySvzBCFBCFgH/1a9rHbbdy4QdPGhs9C/obzdvRJ4F8=; b=l3NawTd/L5/xpgtxYExGcIkpbfpuii+TVGhc1eMg7jg3HomycPFGnmbJCXU467knPw ioX/EZveZqNRj8r1UFGiD+vtVy7V44xDQWskBUqHwZMyuH1UMENRMcYxOwL6SM/toU1J N1VX1zsnC1GwccH/FiQyW1oKP9on/AJiq+iVPc2RatDUM4ndYnvZLkuDmCaeCNGDhuaE F7y59HQbCUuyGdzELw0a8m4sylY/efVaKagIWh5CqzApDLKK/2+fqFuo7bCEjDH4RnCN 0hYmsGRPoW9QmpbPPGfat/EdGlhiC2hHAAiVPuzLabKGyX4RJQGb2LiHqgJ2b7m+5Nln kEpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=bajvseEb; 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 r20si7423114edb.197.2019.10.21.19.48.20; Mon, 21 Oct 2019 19:48:44 -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=bajvseEb; 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 S1730597AbfJVCrY (ORCPT + 99 others); Mon, 21 Oct 2019 22:47:24 -0400 Received: from mail-qt1-f195.google.com ([209.85.160.195]:41205 "EHLO mail-qt1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727264AbfJVCrY (ORCPT ); Mon, 21 Oct 2019 22:47:24 -0400 Received: by mail-qt1-f195.google.com with SMTP id c17so21541300qtn.8; Mon, 21 Oct 2019 19:47:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=WySvzBCFBCFgH/1a9rHbbdy4QdPGhs9C/obzdvRJ4F8=; b=bajvseEbSZD8pigLhE6CKu+zTmKT8LcvjqpD0pPHTveHvRHMeiC/dyJD59iv1SyKUS ySdHAM8olzWEAAG47lXhtbIA8+HZIkdHG4f2TrDBk+dn08BmsDqogomAvxdM7GP0/SHm SpJUr2A2wbwy8Wpd6jD3u59SS7WQgmOmMhFL0BYBvyN+6nvfvumZ8AIjulldN+l2lGvb ZjFIz5MN8wc6el4ZWvRs9ea3wWvM2wQ8po9v6+rK6bAeNnlAhtj16qsjxjZWhJAJaoiQ d2Zl5U8VUrix7rdJv9zGeqEEpZYwgZqL4WlXR0et1bWPcBC4psFFwfab1fR3p+NNrfOj E3Vw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=WySvzBCFBCFgH/1a9rHbbdy4QdPGhs9C/obzdvRJ4F8=; b=SIT9dXZx94sz22zNAvSqE3QeYv832MQmGd8wbj3hVv7n6gDoM6T6JAfUQsPticN1EZ hh6UVThtyn0YGdnTLzfBvJoIzZIvRXJ85qQEAMAwS+0o4GX4rw4MvDYwWNYkFivVHHF3 W5Zk2mAvKxZj4rMkhGqL1/ZDZ3ApBUVQuD61n9tCQiW3bUSwdaqlGDvv1QEAyIfnQ1YH bfYJc3kxyZCKYMJEsQGWj6HTr872YNNBnaPohUG1koVmWYz8H69jAV8ZrEISJoxgqNxe rxL3/Na7V91oKThiaEOpybgQvDRVYKfV+5wshc8BKyPd4Gd6yiWyIcqJ43ybH20LbZ2l eDBQ== X-Gm-Message-State: APjAAAUuVqEMGTpTMVIdOQjyO8bqplY/tAt9DUepE/rfyb4tbBgk4hVJ mm1bif+1WvcXyxTxvski2v5k4dz1 X-Received: by 2002:ac8:359d:: with SMTP id k29mr1043887qtb.96.1571712442839; Mon, 21 Oct 2019 19:47:22 -0700 (PDT) Received: from dahern-DO-MB.local ([2601:282:800:fd80:b912:7de9:ffc9:d1c]) by smtp.googlemail.com with ESMTPSA id r1sm9780610qti.4.2019.10.21.19.47.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 21 Oct 2019 19:47:20 -0700 (PDT) Subject: Re: [PATCH RFC] net: vlan: reverse 4 bytes of vlan header when setting initial MTU To: Yunsheng Lin , Stephen Hemminger Cc: davem@davemloft.net, 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> <20191021162751.1ccb251e@hermes.lan> From: David Ahern Message-ID: <3c79d203-33e9-11dc-939d-3cecd707eb40@gmail.com> Date: Mon, 21 Oct 2019 20:47:17 -0600 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/21/19 7:31 PM, Yunsheng Lin wrote: > Or we just leave it as it is, and expect user to manually configure the MTU > of vlan netdev to the MTU of thelower device minus vlan header when the > performace in the above case is a concern to user? > for now, I would think so. vlan on a vxlan device ... you are going after q-in-q'ish with vxlan? that can not be a common deployment.