Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp925664pxb; Fri, 22 Apr 2022 14:29:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy2z6iQP6Pnw6FYtGNW7ymsYiQ6cem34OBP4KhFaDqGUjGdHcH4muTtVAPvRYcqgub37fUX X-Received: by 2002:a05:6a00:1a8e:b0:50a:90c4:95f3 with SMTP id e14-20020a056a001a8e00b0050a90c495f3mr6907370pfv.75.1650662977770; Fri, 22 Apr 2022 14:29:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650662977; cv=none; d=google.com; s=arc-20160816; b=aFDx4GyuKytOz1RLxA8WY1L4f3IaH8Vp0DsM4BRsbWxsDmNrrEqnibnGGDRAiLDUTb M0sPcvhZKDB/OSTCS8Gn6vt3KH/CfmjcYfBmW/9872nvXvX3PzWxM/jB+SDXRkRWsGLa Udt6e5FnXTkew+cFfhyRHlXyEzHnMGqmJHkXmDCNn3kmwz0ZO4KgrRXa1RWOQtyM/+IV yRxKZy+0d8ftACbHR5ZE0ONjTmx+CSKCqTj5vM35X0dLcQWaxD3a+BdZbMxL9JM1zDuq 85APQXDTePTO4nCl1Z5hBYrCxHrWtDsAHtBuWIr2a3XUqZf0Xdqb9h0AlZlm7sJnAP8b Cs5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=qYEuMKcRPLE7kv8cT5u0HPUdYyTsqKBj+98EErK/TJ0=; b=upyPBzJ+Cvu60/SP9LBQUQj+4W8Yz4bLZfmdQWZvdJ/1qrjuVglEJo3iPPPK6eiWsO dzCBwHPpCuXKbQZ/JkIoEAmd8B5BKq7IY4skrK1FsQlgkFBUhezLwdBcIZBc2y+nPY0Q iuClQV6kk0yPOJ18on8mQzuNVixb0G+SdLTmBfzDFknpU/gQsjjtXVqlVK0uq9ntnAk6 szl7S5NUlGgoDIijiGLFqC5PIOT55b4Kl3H0gxAHbpJNvtnkNwp+6xuoAb9A+M7YcY9h cgviuL0duhvL4rTCa4TJvkp0LlQsinzwiGW+BIYebnoi7JAJCq8CaDNBMSEJYIfA/Qli shwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=cB4C5DPC; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id r22-20020a170903021600b00153b2d1654fsi9000705plh.343.2022.04.22.14.29.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 14:29:37 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=cB4C5DPC; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 872FE2E0276; Fri, 22 Apr 2022 12:36:59 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1385977AbiDUHnG (ORCPT + 99 others); Thu, 21 Apr 2022 03:43:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33470 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1386067AbiDUHmV (ORCPT ); Thu, 21 Apr 2022 03:42:21 -0400 Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net [217.70.183.198]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 183DD1B78B; Thu, 21 Apr 2022 00:39:28 -0700 (PDT) Received: (Authenticated sender: clement.leger@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 8C43DC0006; Thu, 21 Apr 2022 07:39:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1650526767; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=qYEuMKcRPLE7kv8cT5u0HPUdYyTsqKBj+98EErK/TJ0=; b=cB4C5DPCEOYqaVr9TDlENrzgBO5YhoarBWOEZgIWnUCbvvjTlFrP03L1s5ToSBdMOUPO8m dnq1jUaH8UIPO3XlNQhX1uCuKQI6QAill+P6dq5dTL5b5u9DFOOUg0b6ju7dUtPNY5+kLy ohRTLazqOvlRjrQCy0V/ZTsCl2HZcvcbwFlDCui7i9IegCqRbHDt87bmhylkc7MVKEBn4w UL80gxiE8d2mxED8UxMeuQtrpINohimKy2k5T5ddfmU2AgUkgcpEL66Kydzt28aowuN7ay RabEWJWw9osi10CVeYQD+jyv4aYzANUS8n0jOOw2PCuNxCqLj9c7VHTQXyFIHg== Date: Thu, 21 Apr 2022 09:38:03 +0200 From: =?UTF-8?B?Q2zDqW1lbnQgTMOpZ2Vy?= To: Vladimir Oltean Cc: Andrew Lunn , Vivien Didelot , Florian Fainelli , "David S . Miller" , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Geert Uytterhoeven , Magnus Damm , Heiner Kallweit , Russell King , Thomas Petazzoni , Herve Codina , =?UTF-8?B?TWlxdcOobA==?= Raynal , Milan Stevanovic , Jimmy Lalande , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-renesas-soc@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH net-next 08/12] net: dsa: rzn1-a5psw: add FDB support Message-ID: <20220421093803.64ad7cc8@fixe.home> In-Reply-To: <20220420195214.dnekbfhha53trbke@skbuf> References: <20220414122250.158113-1-clement.leger@bootlin.com> <20220414122250.158113-9-clement.leger@bootlin.com> <20220414175140.p2vyy7f7yk6vlomi@skbuf> <20220420101648.7aa973b2@fixe.home> <20220420195214.dnekbfhha53trbke@skbuf> Organization: Bootlin X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE autolearn=no 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 Le Wed, 20 Apr 2022 22:52:14 +0300, Vladimir Oltean a =C3=A9crit : > > >=20 > > > Shouldn't this contain something along the lines of a VID, FID, somet= hing? =20 > >=20 > > This is extracted directly from the datasheet [1]. The switch FDB table > > does not seems to store the VID with the entries (See page 300). > >=20 > > [1] > > https://www.renesas.com/us/en/document/mah/rzn1d-group-rzn1s-group-rzn1= l-group-users-manual-r-engine-and-ethernet-peripherals =20 >=20 > Thanks for the link. I see that the switch has a non-partitionable > lookup table, not even by VLAN. A shame. >=20 > This is also in contrast with the software bridge driver, where FDB and > MDB entries can have independent destinations per VID. >=20 > So there's nothing you can do beyond limiting to a single offloaded > bridge and hoping for the best w.r.t. per-VLAN forwarding destinations. >=20 > Note that if you limit to a single bridge does not mean that you can > declare ds->fdb_isolation =3D true. Declaring that would opt you into > unicast and multicast filtering towards the CPU, i.o.w. a method for > software to only receive the addresses it has expressed an interest in, > rather than all packets received on standalone ports. The way that is > implemented in DSA is by adding FDB and MDB entries on the management > port, and it would break a lot of things without a partitioning scheme > for the lookup table. Thanks Vladimir, it confirms what I thought. --=20 Cl=C3=A9ment L=C3=A9ger, Embedded Linux and Kernel engineer at Bootlin https://bootlin.com