Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3260495rwb; Tue, 8 Nov 2022 02:26:04 -0800 (PST) X-Google-Smtp-Source: AMsMyM6v2+OZ40aZdr8wj1FI+2IMLWHYxD0F01huA9aLkIYLQnec5VdQN8PSJedf2szQ6yqWN9V0 X-Received: by 2002:a17:902:ea0f:b0:186:ffba:882d with SMTP id s15-20020a170902ea0f00b00186ffba882dmr54990179plg.21.1667903164657; Tue, 08 Nov 2022 02:26:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667903164; cv=none; d=google.com; s=arc-20160816; b=UeiopH2BGgDbFURsZw78HOv+pS5BW8r6LGhm5FWp5AK54+ZgsXlfRPxR6Fmm78hDjG xH/F/XEM5sQLh3aPmZ0ApTXUKSl/2RRo4Gm5HWVaTlP0FrdUvDVWAoVCLkUvT5w/piCw F8SUqRw4zYqWnWA/hv2f0UEy5Z+mNeHCMAYIZhDTTS8ijZjVMsbR8eI26iF0mqrIt9Jm g1LquezS/ivLf5i9S4ElfA8QI9G4tx19V5vTerYhj185egRgpNiwiuFm1OGWZIzvsO2k P0sF2syGp9m+9OsAyUZopDrIOrwRhufVOvCc45Axf7lYXpPNdgUkjMoqv4aNEVVBXLXc Fagg== 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=lfrEfHDwRMpqyMO8Vkpm3VmFl5A5Q/ViF7+HOmSNeUc=; b=Q9Umf8xitLvCYd8h8WUkh2IKL35xTtUAWcodacrxEcnO3IoXC8TjEG7TYkJaXLoVuy nYfTfHr/WlR8XgucIIEBRxHZyauG67ASEf3VPk56mjitvUUVEUWK+BHh5h4A0MSNLN7r 0m28gL+D/D+2PbMqZ5Wz79asZuAdyWI8xqpNLZpGlx6Hxc3fqxc8eIRfNW3cnC3sBGwX 5IN+BSeUdclepfi2wkMDJHAU7sVRh7M/Cyc7ahO1JhlkCPGnZldR+EaOOdjvBVv33QNa gBHFFPqKuZZEDr0o+jH9MgM5iytcS7N26De45VLmqsOEZeNFAJt6KIuvJXQgdd84jxSd GGuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=hIq7cDjh; 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 bd15-20020a656e0f000000b0045a8a6b75fesi13257033pgb.499.2022.11.08.02.25.52; Tue, 08 Nov 2022 02:26:04 -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=hIq7cDjh; 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 S233806AbiKHKJB (ORCPT + 89 others); Tue, 8 Nov 2022 05:09:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41626 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233574AbiKHKI4 (ORCPT ); Tue, 8 Nov 2022 05:08:56 -0500 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A829BF46; Tue, 8 Nov 2022 02:08:55 -0800 (PST) Received: by mail-ej1-x62e.google.com with SMTP id f27so37275553eje.1; Tue, 08 Nov 2022 02:08:55 -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=lfrEfHDwRMpqyMO8Vkpm3VmFl5A5Q/ViF7+HOmSNeUc=; b=hIq7cDjhfKnRsy2byjOV1hKutDeb78aGEkzyMv6TK48JaGC3p2ndIBxdKKg8f3PKAj I5Lq+u4S5hm3LQFKg+Il9X8Rml6aZdhYFj9KVG3mzJ1k5Lf+6RIOHzkx1A8ZDatdlmPq vaPT2qCjLhIYbwvUKnoKdwu8ImdMfLqHudDzJiCrPvZHe7QCAwPaYBOGV8ummcz8WzhR e9mwSgKip406Wh995AKRZmv8X2+/364zMfewVOqYdnIxdEF84V32m9ltPkVh+mpPp1JK nNFwBzgl3081O9Q9GDiv3GPSmrcQ3qh4gBl+xvhpTMBslDroJ0d+0096/LcIjQlQGk2q Da9g== 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=lfrEfHDwRMpqyMO8Vkpm3VmFl5A5Q/ViF7+HOmSNeUc=; b=12m992kCmKL0AlCKrwznirzXrIH9Cfh+1oW4sqAa5YfCu7i8e25vMVlTXkQ5t3wkau nLt0WSTgn5JgxulnOGvcrVzYbUMSlxsJEQc71LMbnTbo25mD+pMz25CZmFh+C4XF/bSG wHLcjIM+JzTDnUbC2U458KnNFvugNqPKckV5Dmku/zwKDELrutoMvMTi2KL0V58qGfBa 16yzZ+lTlemsrlR283pfOuEQ40thPg97v0SL/CzKQK7Zqm/mMeGzgi/JucQozSZDuRDe T+PgdmmUIPVm+EvGIutSoXvzaqRdfu43cSUrxx3G+9SLXizTNrD3OLpMeCzV3iBZnxbh 2kFQ== X-Gm-Message-State: ACrzQf0yFqjn7NkUItCNcXpW76F35sOcju/J/tsYcMQt4XyIZICZzcUK bkRiSNeGr8N0h/wJeNg4/FI= X-Received: by 2002:a17:907:1dec:b0:7aa:6262:f23f with SMTP id og44-20020a1709071dec00b007aa6262f23fmr18809237ejc.38.1667902133889; Tue, 08 Nov 2022 02:08:53 -0800 (PST) Received: from skbuf ([188.27.184.197]) by smtp.gmail.com with ESMTPSA id g26-20020a056402321a00b00463bc1ddc76sm5331572eda.28.2022.11.08.02.08.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Nov 2022 02:08:53 -0800 (PST) Date: Tue, 8 Nov 2022 12:08:51 +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: <20221108100851.tl5aqhmbc5altdwv@skbuf> References: <20221107185452.90711-1-nbd@nbd.name> <20221107185452.90711-8-nbd@nbd.name> <20221107215745.ascdvnxqrbw4meuv@skbuf> <3b275dda-39ac-282d-8a46-d3a95fdfc766@nbd.name> <20221108090039.imamht5iyh2bbbnl@skbuf> <0948d841-b0eb-8281-455a-92f44586e0c0@nbd.name> <20221108094018.6cspe3mkh3hakxpd@skbuf> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 10:46:54AM +0100, Felix Fietkau wrote: > I think it depends on the hardware. If you can rely on the hardware always > reporting the port out-of-band, a generic "oob" tagger would be fine. > In my case, it depends on whether a second non-DSA ethernet MAC is active on > the same device, so I do need to continue using the "mtk" tag driver. It's not only about the time dimension (always OOB, vs sometimes OOB), but also about what is conveyed through the OOB tag. I can see 2 vendors agreeing today on a common "oob" tagger only to diverge in the future when they'll need to convey more information than just port id. What do you do with the tagging protocol string names then. Gotta make them unique from the get go, can't export "oob" to user space IMO. > The flow dissector part is already solved: I simply used the existing > .flow_dissect() tag op. Yes, well this seems like a generic enough case (DSA offload tag present => don't shift network header because it's where it should be) to treat it in the generic flow dissector and not have to invoke any tagger-specific fixup method.