Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp13612558rwl; Wed, 4 Jan 2023 10:25:31 -0800 (PST) X-Google-Smtp-Source: AMrXdXvTtfcrnnocz7bYq80YOZFms+61ICdFs8o7O8OwqrvG9gr+tEWJQdjo7eT0eGhPtaOyrEze X-Received: by 2002:a17:902:8647:b0:192:549b:97c3 with SMTP id y7-20020a170902864700b00192549b97c3mr47986852plt.42.1672856731443; Wed, 04 Jan 2023 10:25:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672856731; cv=none; d=google.com; s=arc-20160816; b=QQwiSOZYPaN9KStTtFNvdql9MTNnrVOWgqYn74dJIvKuQcf89Y3l191ik5ZBHyHciF R5yBJgL3+Wq8dzsxAguzAgBWaXGwvNAWUXpBdbuUBAg3YRIuSgvzQVHs+bdiKAR9IBTD CNlFqNYo8RiwzfMCsWFA2oE7qVqvseTHQ2866jn/2V/7uNFBKs1UO+Aw0g6zEOewE0NW XE2NRE/OqAlskoUSrE83NES4lB9vsHxL0Hrf4BGi180z1GjQqtHYjDkBD9IEHDibWTR3 uVY1Atliw7narLUa/ZP1uuaj0x/CcYQq8YnhBYF2MItDjDqG6zaMzwmml6FELSPyv84d l7Pw== 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=cXFF8GYX5Zinjr/Qz/IXvMCn5CnWUu2Qz1tzFtqqkog=; b=gI14irSK4ZLHjSGdI+fj+WWxWJU68XPaC4BRcqPsj4DmcAjYEu9lbL+NWee3Dh2BEI 48ldXuRpmLLVQ1o305wxWbn96J85GlNudtDUbG+Tw+gcX6dFsMklMoxUhj4Tf/c/17Gb MIqFwgqKYhREHSvsWlFhOCD6XX6dm5KLLEyW2fV6ywdDRMS/f01iEkBIs1U88elTWxDN qSqMJsr97IN8gj0G2GRIJ2UVr09pBYjkV57WxHDq0CkWICws2FqdtDyyE0u5GH1NgcaE QEg5YJ5zXNat5fAnhAxEeYUAaiu9/mdrJ+tiPWV5C1TMoHECZU5gIoaBTvPfvARacppZ rljw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=JTaSmDfT; 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 x24-20020a63db58000000b0049d0f339cc0si21316578pgi.538.2023.01.04.10.25.24; Wed, 04 Jan 2023 10:25:31 -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=JTaSmDfT; 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 S239873AbjADRrd (ORCPT + 56 others); Wed, 4 Jan 2023 12:47:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46090 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239878AbjADRr2 (ORCPT ); Wed, 4 Jan 2023 12:47:28 -0500 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D5D71A055; Wed, 4 Jan 2023 09:47:22 -0800 (PST) Received: by mail-ej1-x630.google.com with SMTP id x22so84393946ejs.11; Wed, 04 Jan 2023 09:47:22 -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=cXFF8GYX5Zinjr/Qz/IXvMCn5CnWUu2Qz1tzFtqqkog=; b=JTaSmDfT0/oFcAPRSwmBn0cQRjSCiRxOfE9Oy3DECfRirfNcmbyfAh1OxkTh3gudn/ ptZaF9itgHIRga+/R11GcJ85VIR5g4C6L0fbmbGTKId59a0EbwIf1H9a79xCb8fGf9m9 Env/rlHBIPAC34UA7LidBeD9nZom+Ta/nfwGU+usHl5zyP/qXRV7ybdKLfQ+dHtFes7H PtYXoNquO7JUUneNAT2/CSHrmeY7EEGIizj4zK9S12fC0OlU6rpcWJVssJpZ8AuA+c+A zA4z5alDhxCTqmDbNIzJ2z4VzbJn30VbXjvCwWDXzF/3XFtN8UBvP2jt6ClXUgF7CCRP LDQA== 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=cXFF8GYX5Zinjr/Qz/IXvMCn5CnWUu2Qz1tzFtqqkog=; b=vNWwP3HaduUVSxdidlFzMeqzc308xpff45QoZynU97Fmp00WsIK9zEKObxopzR1azv Zepd3TNwWekAmRhMul3dlBNbg61yrWHjcXAueZSHPvE2QxjCnNPG0H1hEBJgu26+Lzpy IykaacEotqjiYkRgzETomJ8z7+i5LqAt0HSgJlZG7etpEJokPbTXDM0f1tmjXLspn25/ u2S1t4wErlmv4OoINWLbC2LgxPGTrvA3lD3KyFlHpVfeBEsR8GmBByWuTcqBSRbWXxFe H4PCy8gBQDsGjm54940BH/m1LkTdEuXkdZmeashRnF5JOWoBFzA0kRLbs9kj52Gz2p0A y9Ug== X-Gm-Message-State: AFqh2kqZrgGv+LzKiP0XAEyEO9A/Cy+xuYHo/gEaGSZUEi2KMJyPTSCV sGxrf8SWdffgJU+PWvND4kI= X-Received: by 2002:a17:906:6dd4:b0:836:e6f7:8138 with SMTP id j20-20020a1709066dd400b00836e6f78138mr52011762ejt.13.1672854440801; Wed, 04 Jan 2023 09:47:20 -0800 (PST) Received: from skbuf ([188.26.184.223]) by smtp.gmail.com with ESMTPSA id t15-20020a170906608f00b0078d9cd0d2d6sm15862155ejj.11.2023.01.04.09.47.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Jan 2023 09:47:20 -0800 (PST) Date: Wed, 4 Jan 2023 19:47:18 +0200 From: Vladimir Oltean To: "Hans J. Schultz" Cc: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org, Andrew Lunn , Florian Fainelli , Eric Dumazet , Paolo Abeni , open list Subject: Re: [PATCH v2 net-next 3/3] net: dsa: mv88e6xxx: mac-auth/MAB implementation Message-ID: <20230104174718.kq75drpngmfkflpm@skbuf> References: <20230104130603.1624945-1-netdev@kapio-technology.com> <20230104130603.1624945-1-netdev@kapio-technology.com> <20230104130603.1624945-4-netdev@kapio-technology.com> <20230104130603.1624945-4-netdev@kapio-technology.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230104130603.1624945-4-netdev@kapio-technology.com> <20230104130603.1624945-4-netdev@kapio-technology.com> 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 Wed, Jan 04, 2023 at 02:06:03PM +0100, Hans J. Schultz wrote: > This implementation for the Marvell mv88e6xxx chip series, is based on Comma between subject and predicate? > handling ATU miss violations occurring when packets ingress on a port > that is locked with learning on. This will trigger a > SWITCHDEV_FDB_ADD_TO_BRIDGE event, which will result in the bridge module > adding a locked FDB entry. This bridge FDB entry will not age out as > it has the extern_learn flag set. > > Userspace daemons can listen to these events and either accept or deny > access for the host, by either replacing the locked FDB entry with a > simple entry or leave the locked entry. > > If the host MAC address is already present on another port, a ATU > member violation will occur, but to no real effect, and the packet will > be dropped in hardware. Statistics on these violations can be shown with > the command and example output of interest: > > ethtool -S ethX > NIC statistics: > ... > atu_member_violation: 5 > atu_miss_violation: 23 > ... > > Where ethX is the interface of the MAB enabled port. > > Furthermore, as added vlan interfaces where the vid is not added to the > VTU will cause ATU miss violations reporting the FID as > MV88E6XXX_FID_STANDALONE, we need to check and skip the miss violations > handling in this case. > > Signed-off-by: Hans J. Schultz > --- Reviewed-by: Vladimir Oltean