Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp277019ybh; Mon, 20 Jul 2020 16:38:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzeMYcIiRXacQ6L7Ax2/Xd9vToADjIAfuO1z3IRieQhjadMLulBxNELmJWfvcIFaui27QTy X-Received: by 2002:a50:e689:: with SMTP id z9mr23765469edm.131.1595288280813; Mon, 20 Jul 2020 16:38:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595288280; cv=none; d=google.com; s=arc-20160816; b=mnSasL9xt8w2ybDw1tD0/weoiaGVUkJtW4Ol2WZ+jTS32CnLwpTMM6rrUiKMYeuZa1 vIDRanab5Giz6cFyar8yBIyWoYifl4QStzR58LBvoL22pGi8IjK2xkECnSIEPBztp6o1 q5kpdyKMv+2/n1U7FlrSmKH8PyJafRTZtsCLcwwr6IIOYZ1UuUEkzN2cGcrBLwlnWtwZ C+7YISNaXDnghRJEfGcz3XFz3X+IQzvLnLcHNKZgfg2bjAVvwQlvEviMlHfWa4KUnfOK v+HWJgAqWjLO5ZvjR0y5a6WF42j+AkjYv7JJxVtOM1n0SiPVzSJ9pws3np7JS0yG1Wdc J6kQ== 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=MZJOFdy0KjFNutk7/5g5l5nQe0sO9Hj2cCR04IMEFLE=; b=ShoJxqgNKW577mPlT1/YlmfEhJ9Lomix7gHXKBJlkNvd+wo3xUEOPwMcdb0rHwwL11 NL57mGEdXhhyTPYjiyKyi1nVhL/iNf8ptQYhMEuDujAC7YGlRAaXhlW3wtoIVbQ2qeMn sgv1cAKWANa83Qa2UAz6E3yydI1m1TP8YX68zPCiVWyHUPTjibmK9IqjpcBagzf3n8Bx d0GMwRXVfxmUSVPY6U9TCTnw/uM4HhUD/WSw9kEUWMUQsJIixX0ULS1wO+CIn9vEx1MA UWVJL2Zhx2jVR1YzrFekjWjfsOoANArF3Q4rtR+yGmwp6qmSVez0++GSj3nWbdSdwasV 2JAw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n15si12120969eje.190.2020.07.20.16.37.38; Mon, 20 Jul 2020 16:38:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728008AbgGTXhA (ORCPT + 99 others); Mon, 20 Jul 2020 19:37:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55874 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726383AbgGTXhA (ORCPT ); Mon, 20 Jul 2020 19:37:00 -0400 Received: from shards.monkeyblade.net (shards.monkeyblade.net [IPv6:2620:137:e000::1:9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 90A87C061794; Mon, 20 Jul 2020 16:37:00 -0700 (PDT) Received: from localhost (unknown [IPv6:2601:601:9f00:477::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 A004511E8EC0A; Mon, 20 Jul 2020 16:36:59 -0700 (PDT) Date: Mon, 20 Jul 2020 16:36:58 -0700 (PDT) Message-Id: <20200720.163658.560155959996455439.davem@davemloft.net> To: stephen@networkplumber.org Cc: willemdebruijn.kernel@gmail.com, srirakr2@cisco.com, akpm@linux-foundation.org, xe-linux-external@cisco.com, kuba@kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, sthemmin@microsoft.com, mbumgard@cisco.com Subject: Re: [PATCH v2] AF_PACKET doesnt strip VLAN information From: David Miller In-Reply-To: <20200720135650.1939665b@hermes.lan> References: <20200720135650.1939665b@hermes.lan> X-Mailer: Mew version 6.8 on Emacs 26.3 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, 20 Jul 2020 16:37:00 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Stephen Hemminger Date: Mon, 20 Jul 2020 13:56:50 -0700 > It matters because the problem is generic, not just to the netvsc driver. > For example, BPF programs and netfilter rules will see different packets > when send is through AF_PACKET than they would see for sends from the > kernel stack. > > Presenting uniform data to the lower layers makes sense. The issue here is that for hyperv, vlan offloading is not a "may" but a "must" and I've never understood it to have that meaning. And I still haven't heard what is going to happen in Q-in-Q situations even with the ugly hyperv driver hack that is currently under review.