Return-Path: DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 919D5404EE DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org B35B24023B From: Hans Schultz Date: Thu, 30 Jun 2022 12:05:11 +0200 Message-Id: <20220630100512.604364-1-hans@kapio-technology.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Bridge] [PATCH net-next v1 0/1] enable locked port feature with learning List-Id: Linux Ethernet Bridging List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: davem@davemloft.net, kuba@kernel.org Cc: Ivan Vecera , Andrew Lunn , Florian Fainelli , Jiri Pirko , Daniel Borkmann , Hans Schultz , netdev@vger.kernel.org, Nikolay Aleksandrov , bridge@lists.linux-foundation.org, Hans Schultz , Ido Schimmel , linux-kernel@vger.kernel.org, Eric Dumazet , linux-kselftest@vger.kernel.org, Roopa Prabhu , Paolo Abeni , Vladimir Oltean , Shuah Khan , Vivien Didelot This patch is related to the patch set "Add support for locked bridge ports (for 802.1X)" Link: https://lore.kernel.org/netdev/20220223101650.1212814-1-schultz.hans+netdev@gmail.com/ This patch makes the locked port feature work with learning turned on, which is enabled with the command: bridge link set dev DEV learning on Without this patch, multicast packets like EAPOL packets will create a fdb entry when ingressing on a locked port with learning turned on, thus unintentionally opening up the port for traffic for the said MAC. Some switchcore features like Mac-Auth and refreshing of FDB entries, require learning enables on some switchcores, f.ex. the mv88e6xxx family. Other features may apply too. Since many switchcores trap or mirror various multicast packets to the CPU, they will unintentionally unlock the port for the SA mac in question unless prevented by this patch. Hans Schultz (1): net: bridge: ensure that multicast packets cannot unlock a locked port net/bridge/br_input.c | 1 + 1 file changed, 1 insertion(+) -- 2.30.2