Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3351267rwb; Tue, 8 Nov 2022 03:39:14 -0800 (PST) X-Google-Smtp-Source: AA0mqf4aR8yD2UYMC5kvnNhu/3+wE4xjD1GJXhDV/8hDKcEweqFUZEIPPhkjD9eTU7hu0GRA6Qsk X-Received: by 2002:a17:907:728a:b0:78d:2b4b:e7f7 with SMTP id dt10-20020a170907728a00b0078d2b4be7f7mr7345506ejc.269.1667907554274; Tue, 08 Nov 2022 03:39:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667907554; cv=none; d=google.com; s=arc-20160816; b=VQ3Lii5kCXoK2uk6Oxiop+ZRS5fVb+nLyf7G8t70+SMNGW/Fl2f0XONOdaLyQwGq5v ITuL6oXaK/kRq83orn3q1jizVTlIPKREJkIymCfJpsnfN+C2R9BUwwn7zqwg9gqE1S91 Ej6J/lSk2fk+ErtuQClz9i+okfN8nHxblp2VELhPADzL2+DBQ5tSWUO37ZxPVBBoCxx7 eQxSMr+07IRLbOZxTcSblnJ+pjNu8Dkv4yJnpUYtArHsLpfAtipfN8k+glnsc58kN9H0 6nTyBroZnzciIifvk/AY+W6ccQpF5tTrve+ateXORsZd52KOfMZFegYVfH0TfilXPo2g 3XFQ== 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=2+psZjXySrgWO95sAydADMN8XzzN9c04wfmCKnTPkHo=; b=ZwyYs4d1UHMmvCDWZCMLVBFM/yDdJr6vJrG0JNffBCT/vLgFM0T6G1AKuKW4iSUfHW 47DbP+WjuSdxUOh7M3MpNPu7XLf5ifK61SE1UHA1fK46oDCfiqBeiGZJQGndQCb/touF NkdlvHMcTPOTJf+XwDsi2HVVM1voe9hwe9nih5hWxxyjRlpaH95+VSf4pcr9SeHjD9sC spOkKPQWSxBGsmFwC415DbH5UD77k17cSPCVjMjILkD+xEPvylDVlWyPvSDuFkgzxqV7 9xER79bMI7Um+boLplALd3u+11O0W459N8fGdvpNdEIsg8+DjE2l3n1ov/5jHpr24QsJ mB+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=NwtOy3YR; 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 i7-20020a05640242c700b00463a4ca44e0si15990042edc.138.2022.11.08.03.38.52; Tue, 08 Nov 2022 03:39:14 -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=NwtOy3YR; 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 S233763AbiKHLXW (ORCPT + 89 others); Tue, 8 Nov 2022 06:23:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234114AbiKHLXK (ORCPT ); Tue, 8 Nov 2022 06:23:10 -0500 Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 240834877B; Tue, 8 Nov 2022 03:23:09 -0800 (PST) Received: by mail-ed1-x52c.google.com with SMTP id v27so21976096eda.1; Tue, 08 Nov 2022 03:23:09 -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=2+psZjXySrgWO95sAydADMN8XzzN9c04wfmCKnTPkHo=; b=NwtOy3YR6NL0Rp3dNnPZkVN3BHTomN749KfBM4MICWmtT5C4qlqS3f54WfPuC5iYEE XykaZFNJLBQ/R9TlH9wDjLQLDO0nF1R0R/erBlS1CKQ6LWO1T6iHsUwRq0ijG7P97qQS uQBC1C0Q/34yIMDv/7LFQXxVkszyrs+raYEf1P0umX9OShXuVx5BJI15nBX9m7AAuJhn Qtlp+sCq8yNBhFtmHqqbcCf7uHjFCbkVEabMotC8piMJbJdqRrPif4P4LvOE9UjTCB4W j2KbchsI/m5BD78tJidjwo5UhgEZmsEQwaotHFVsmQpLz/oTOmXNkxCUrEWLlPSvaWWx Z+rA== 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=2+psZjXySrgWO95sAydADMN8XzzN9c04wfmCKnTPkHo=; b=Gw2e8op6F9nELu0h0UD0dLHF8PzcQMfYOs705v7hqGohnlIbajStuMOIL+b2pEt+J6 RPgVzjnY6qh71g0rbYnAeHGkGMdo0vzHNGczyDiN6EepzX4ByRBBslcWmmRWiojQPjR6 5Q5bQfmJB1sXOgmOJAv3mLge8drnNnUMAiFaUR1YW77YcNfrArWS/3BTjn0XBOgJ3Brx zo4NcFxPYNr4PadM6gP1MEaCSzqdegJIstQpkRvU4aqHn5yrLb9izuXzCdf4m1Bkn4bU Xllu4/bc42+kFj8NN+ouGicxa3+rX9m+KiNQWEzsJ4OpwByG3R9pxy+5h3C20JXdLjJb Zzqg== X-Gm-Message-State: ACrzQf21+8SSKweakdicKSUgciO+k0GQ3mFCGgb6nGdg9nA5lzP3U98r UTR2ziUD566shPELxxcJrwk= X-Received: by 2002:a05:6402:4444:b0:458:f355:ce04 with SMTP id o4-20020a056402444400b00458f355ce04mr56213467edb.422.1667906587567; Tue, 08 Nov 2022 03:23:07 -0800 (PST) Received: from skbuf ([188.27.184.197]) by smtp.gmail.com with ESMTPSA id t18-20020a1709063e5200b007a62215eb4esm4608547eji.16.2022.11.08.03.23.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Nov 2022 03:23:07 -0800 (PST) Date: Tue, 8 Nov 2022 13:23:05 +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: <20221108112305.bkdxezogmymhmaei@skbuf> References: <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> <20221108105237.v4coebbj7kzee7y6@skbuf> <75932a98-0f9b-0cda-c1dc-29322bc0141b@nbd.name> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <75932a98-0f9b-0cda-c1dc-29322bc0141b@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:56:52AM +0100, Felix Fietkau wrote: > On 08.11.22 11:52, Vladimir Oltean wrote: > > 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. > > Right. The assumption is that if we use METADATA_HW_PORT_MUX, the field > md_dst->u.port_info.port_id will contain the index of the DSA port. Yes. Please coordinate with Maxime, see if it's possible to do something similar (generic) on TX, depending on whether the DSA master reports it can interpret metadata_dst as offloaded DSA tags. You didn't copy too many folks to this patch set, so others might have missed it.