Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3362213rwb; Tue, 8 Nov 2022 03:48:49 -0800 (PST) X-Google-Smtp-Source: AMsMyM5i/zBYTUP60CyIkF2/Qyf8O4xVGUNt8GBAYW0j99Dyb04rC1I7+wI8tHehlpA4F/drwW23 X-Received: by 2002:a65:6158:0:b0:46f:55fe:9be6 with SMTP id o24-20020a656158000000b0046f55fe9be6mr46915488pgv.301.1667908129104; Tue, 08 Nov 2022 03:48:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667908129; cv=none; d=google.com; s=arc-20160816; b=dF/h7qP7JHT8YWXnCIbQKjaitTL1w6LHb5i4rggkPD4VDXbylz3ccRm6pmrQewNco1 ZdsM7i/5P4xTKztGcYbxWkq+ypPVhvI8Sb0GCZ8iausurHv9Yneee1D4OeCIo6U3g4Xi oFURjNtPZqg3DyA4257BunVD5/wygzfsyW1qgFnanbCvp/WSvvAZPYDRa9vjSfF+Mz3d 9zHq9NGrIcW+7UigB+0X1YYTxmlC/A9Mcy7KL+BTsrnQFf+PXJPbCz3DQRsvVwlRIOys yDqJv90jIV/C41W63+AtIwIkLuXEbHsu4QwtL3PZGtGEburC9Wwax6bTiNy/Xe0YlF51 qTBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=7LZgN1MGzpYB9kQzT0oOgi5SYlCbGt69gduWh0AtukQ=; b=jgTwpW+A1dTEEHQUcpZZJUkhJg6BwixD8rIdg9vB0O3rOhwEHJEgyqHkE9ZAcr02Tz is2tMzKdCMM4RdRDFmEMQps7GxpOirbKxGbAtnG72i6adrsn9H/HTlMRE+mtls4gN/H9 BSayJT+kaE+b+++rBAoc2ygEM0+Ar04rrkA/fmbbNeAIzrBhQY1Q7C8mbM2IFSRn8tnB 4vivArKR8waoWdHZOvYB8YSkj2L4xdEUrJnpM6Z1FK9NbwhJPVI9oOHM4agMN8t7JGhB k4zqvGSoIH1ivvm0WqouPcTWwJa1vROJU4URVk6cSTgitUv095A9OF7LVwlDLn7ucie5 7eyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=macuIFLk; 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=fail (p=NONE sp=NONE dis=NONE) header.from=nbd.name Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kk3-20020a17090b4a0300b0020d489b55desi20043881pjb.63.2022.11.08.03.48.37; Tue, 08 Nov 2022 03:48:48 -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=fail header.i=@nbd.name header.s=20160729 header.b=macuIFLk; 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=fail (p=NONE sp=NONE dis=NONE) header.from=nbd.name Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233740AbiKHK5G (ORCPT + 90 others); Tue, 8 Nov 2022 05:57:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45564 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233982AbiKHK5C (ORCPT ); Tue, 8 Nov 2022 05:57:02 -0500 Received: from nbd.name (nbd.name [46.4.11.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ADE0829CB4; Tue, 8 Nov 2022 02:57:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbd.name; s=20160729; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:Cc:To:Subject:MIME-Version:Date:Message-ID:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=7LZgN1MGzpYB9kQzT0oOgi5SYlCbGt69gduWh0AtukQ=; b=macuIFLkl9VFOW3bU8Hl7xDksA 1hOxJwylT4ApuyJmgKKPlljl6wuxi+ay9ZY8fNk7AvtC05OrBcmJCAq9Geeh0QZcuzmEJoqt94mfA HRG6JLmFro8OpFko+bKdJ8BTnGoPG2QUCLWNC/Uy2G5RPLkpKCZ2pWTPIaUzxQuw0Klk=; Received: from p200300daa72ee1006d973cebf3767a25.dip0.t-ipconnect.de ([2003:da:a72e:e100:6d97:3ceb:f376:7a25] helo=nf.local) by ds12 with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1osMHk-000Ui9-N2; Tue, 08 Nov 2022 11:56:52 +0100 Message-ID: <75932a98-0f9b-0cda-c1dc-29322bc0141b@nbd.name> Date: Tue, 8 Nov 2022 11:56:52 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.3.2 Subject: Re: [PATCH 08/14] net: vlan: remove invalid VLAN protocol warning Content-Language: en-US To: Vladimir Oltean Cc: netdev@vger.kernel.org, "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , linux-kernel@vger.kernel.org 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> <20221108105237.v4coebbj7kzee7y6@skbuf> From: Felix Fietkau In-Reply-To: <20221108105237.v4coebbj7kzee7y6@skbuf> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_NONE 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 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. - Felix