Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3330236rwb; Tue, 8 Nov 2022 03:23:03 -0800 (PST) X-Google-Smtp-Source: AMsMyM7pdjfP2vI1T1NsGAbCBPU9VSDE9QjKAJUaPx0rb1+gCt+p4kn+Eri3iNSTa4rtrLANeTyW X-Received: by 2002:a17:906:a3ce:b0:7a1:b573:c99e with SMTP id ca14-20020a170906a3ce00b007a1b573c99emr934965ejb.55.1667906582705; Tue, 08 Nov 2022 03:23:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667906582; cv=none; d=google.com; s=arc-20160816; b=ls4vkQHnJLmYOG0sZt/1SKpox7jhQYSsgDdeeQjZbRYh1zMZ4bOeLpvG7LNo9MF868 5YSFR7LJ2VeaxMO8JJ8lrLnqYG9Bj7Wth3n9GOzH01+CYB1o2OHob4HarpC5acEvz+DC F9/5rlyyatUm1rCvdeEyARmbLk7ceXR2ZUVaA/rgwH+uJYpueTq26uCXJaC8ciXNFo+R 6Xnp2q3mavb03fDp/e1s3CIhYqJbtwNQ7bScdQKaEyUu9vdrDd06bDKH2QzF5dJQOiA+ y8BlNNAnqRY/Kw+h9Gh3vfjtple7D5E7c5eMwhxuMGnLUBy3/BmU7i0FD1XbDQDYyxKz Bnpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=GXhEhO2kkG9w3BXRPl6KAt7HKRZJS9R4ZERT274x0RU=; b=J7z5D/oznBajnhVLyt4AZaDQVLm8cWukCrJG3pd06cY8lwYxTNaIi4VL62qXSZtuCP hvutn9KxXeUGfK+APNjw8kgOJjRnIqeJfyxxSrV0kbrXDZ8tBFDfbKhOyJd+L2RQetSR xWIUA+VmrQL+w5+722aUcsGGd2/3KfUmTE97pQP1+rL8mby8bDYJS9GWn/GkVGmWzHvm qhAr7MUKjg8670O9tqSiLD78VaCuG6GTwhVXJ49jTe9bFpEDW910ADHu9WEIwgiFpSLn B70DCxnkUuSbDJ+mCM8JHTEv+onjB7udl/+Z1jQk/BP7foih3huLbt/F8nN8eyyvd+Hw fzYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ipu4bdS+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kl14-20020a170907994e00b0077ef3eeca17si9323325ejc.155.2022.11.08.03.22.41; Tue, 08 Nov 2022 03:23:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ipu4bdS+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S233481AbiKHKwt (ORCPT + 89 others); Tue, 8 Nov 2022 05:52:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233970AbiKHKwn (ORCPT ); Tue, 8 Nov 2022 05:52:43 -0500 Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC48011A03; Tue, 8 Nov 2022 02:52:41 -0800 (PST) Received: by mail-ej1-x633.google.com with SMTP id n12so37446044eja.11; Tue, 08 Nov 2022 02:52:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=GXhEhO2kkG9w3BXRPl6KAt7HKRZJS9R4ZERT274x0RU=; b=ipu4bdS+WZU6Gcjx6kIGv+zU4FZTiasQsj89aiazUPILBchJZ73UvbMEHTtN/9hjej VuwbnnUFA6yeLNcDXkSl4BPWvCUtHSATAFLX/sYoadFuceEVCFUAQy8PU9EQK9GmOZoN /3dA3gfBLNysavXBVUjzuxZd7UGOkWSXOVslaRKQieMZwle+plHlCnCL/ZJiVQCfmrVq RHat9olXKcoevWgF5BwaA2YjHq7aZ6lawJ8Y3sWnRmbQehL0hlCXu7+E4r5xSKa5f+aH 1c5+CNoaanVJKGQG8DhC/6U9mQy8wUCOupJ5oLtM0pc7uAvl9P4HmuunSv/Aa7NAJ2Iu R64Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=GXhEhO2kkG9w3BXRPl6KAt7HKRZJS9R4ZERT274x0RU=; b=UzygLGcn2/1y5NcGLbCr/8mimL5QbAQKeWhyz8cb+hc3n0V/6yaA6W19ysOg1YMWlB Hq4KOERmxBWobxB8DsXQKjYazb4w4Pz7Yxir8X2ng4Pe44elKG+Sy0AOHr8Oixeqm8Dv CMEwFnfisNU1n1GkRH6GgyfOz4YTwVYVBE8cbBIdiU8aodwk+GFgu9Z+IYIl4GpmxdmU M8rrvurIkupRXp10rybLDKSrlKHtK1l3Wc2pTDHvdschmvjbQZp8sPWa949J6owYQrEv FFPef0X5DI/hZt7LFXuJtFr6junNkhkGFuUBWcbYOs3/2RYd+AVCAnwpyTbE/PCekqoB AZ/g== X-Gm-Message-State: ANoB5plwCeHhuUk62Z6XmcfzkN5SqiuGz4EyhBobLxK26XYL0hDwSTxd Ommfi0N+NWPeovRBbNhTBQtPY7pU5BGBsA== X-Received: by 2002:a17:906:4ecc:b0:7ae:4f8e:1d7 with SMTP id i12-20020a1709064ecc00b007ae4f8e01d7mr14642472ejv.339.1667904760221; Tue, 08 Nov 2022 02:52:40 -0800 (PST) Received: from skbuf ([188.27.184.197]) by smtp.gmail.com with ESMTPSA id q9-20020a170906360900b00795bb7d64d8sm4543312ejb.217.2022.11.08.02.52.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Nov 2022 02:52:39 -0800 (PST) Date: Tue, 8 Nov 2022 12:52:37 +0200 From: Vladimir Oltean To: Felix Fietkau Cc: netdev@vger.kernel.org, "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , linux-kernel@vger.kernel.org Subject: Re: [PATCH 08/14] net: vlan: remove invalid VLAN protocol warning Message-ID: <20221108105237.v4coebbj7kzee7y6@skbuf> References: <20221107215745.ascdvnxqrbw4meuv@skbuf> <3b275dda-39ac-282d-8a46-d3a95fdfc766@nbd.name> <20221108090039.imamht5iyh2bbbnl@skbuf> <0948d841-b0eb-8281-455a-92f44586e0c0@nbd.name> <20221108094018.6cspe3mkh3hakxpd@skbuf> <20221108100851.tl5aqhmbc5altdwv@skbuf> <5dbfa404-ec02-ac41-8c9b-55f8dfb7800a@nbd.name> <20221108103330.xt6wi3x3ugp7bbih@skbuf> <1be4d21b-c0a4-e136-ed68-c96470135f14@nbd.name> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1be4d21b-c0a4-e136-ed68-c96470135f14@nbd.name> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 08, 2022 at 11:42:09AM +0100, Felix Fietkau wrote: > Okay, I will stick with METADATA_HW_PORT_MUX for now. If we use it in the > flow dissector to avoid the tagger specific fixup, we might as well use it > in DSA to skip the tag proto receive call. What do you think? I suppose that dsa_switch_rcv() could test for the presence of a metadata_dst and treat that generically if present, without unnecessarily calling down into the tagging protocol ->rcv() call. The assumption being that the metadata_dst is always formatted (by the DSA master) in a vendor-agnostic way.