Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1689232pxb; Wed, 9 Feb 2022 02:15:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJwjBSbRGBldZTlBedixWpqsf+hrd7jOUwo64h903xUgsWRM+3SoU8st9D9EH7tzrKETfw5Z X-Received: by 2002:a17:90a:5509:: with SMTP id b9mr1734897pji.30.1644401722448; Wed, 09 Feb 2022 02:15:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644401722; cv=none; d=google.com; s=arc-20160816; b=PsgVJ8xKLhwoMzOAaI9ewWOK8vZBb4FVNIxANHTBwocgNsM706jA9sJ53VVmqKuaCY zTX8dTLa9shCNAHRFc7xA64jQmuxb77ZijgCnG8EL0mtU6zQDnnZoMIlnKkFnJxfnUzM jaGhavtGGtFrUdMAbS3axOgOxvmt0TOlyn9/oW4VFwU9m6qTnoXxefxTex1kcQsP+eRt Jik09xOwS6GrXvTR2jLRoCzHomkB3U5a7M4AUi+qzrl7uowDRM8crB732qI1uQ5iWeNO 0NWjbK61Jku60lKNYX2pcUMpCpNTiOijonQVXh3ihddb/Yjhs0RewdYPEdjpAgaH01Db Cm4A== 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 :message-id:date:references:in-reply-to:subject:cc:to:from :dkim-signature; bh=2GE6Q0D3nEM9QK+CkQht2Y4pLl2s1etXJlLVBzJ5ih8=; b=Roxw46rueP5H59XlshSP4y4coBZjAh0Co2ASEkyNpJNxqqEFP8ahPL4OmCqo+W04na BSJ9TOIwZqJZzrLX66H6zShhtz6qIwVTlYruYVqaxsijzSBS6zfix761dJd/W+EVXf4r 0SySRjO7btcIiqiu2joRisuZTZori/mQ+8puKLIrLoZCT2PLlPbIDieMFuPXjzrnSVww tZ//5IgUhubFbSWv1mDZoa/On8Uxnan1UBStbU28WSaYfhvscWcE3TQiSaMilzRORyLg bNeSN39Td0zKZs9Gu2UnTEjpedcO71cXB5xzdqHkNc8i6SLWaawAt0ZTb+D3i3aQgp+o Q46w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="H9rZ/I0j"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id f16si16145811pfj.14.2022.02.09.02.15.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 02:15:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="H9rZ/I0j"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3AE6AE04B0E0; Wed, 9 Feb 2022 01:16:43 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350416AbiBHNTx (ORCPT + 99 others); Tue, 8 Feb 2022 08:19:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52252 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350334AbiBHMPe (ORCPT ); Tue, 8 Feb 2022 07:15:34 -0500 Received: from mail-lj1-x242.google.com (mail-lj1-x242.google.com [IPv6:2a00:1450:4864:20::242]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1482BC03FEC0; Tue, 8 Feb 2022 04:15:34 -0800 (PST) Received: by mail-lj1-x242.google.com with SMTP id q22so24150047ljh.7; Tue, 08 Feb 2022 04:15:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding; bh=2GE6Q0D3nEM9QK+CkQht2Y4pLl2s1etXJlLVBzJ5ih8=; b=H9rZ/I0jxjWtcDngwgYUkZB6+c1jgkoSzx9diPClqzk+qipqU+CoO0jeNarTTOJraD yAwmr+aMt5Vy0D48+IURaOm7+iDdS0+W2lsYhnb6eLdFA8ftUVmDzVwzUfRV46b8R0+a RZHqw35+wt1DytW8nYBPCqAb8B1T4MJxadEKK9E0lLS2MIsS3eAAOjniDMEvpSOHQIh4 l+H2PhcKlbB0Ui9rIoOVoJbMyzp7uvQJPo37lwvOUd4k7BndLHNbZ4fSXFAxfmbEQWTa kepuJ05xembxMUoo23fki4pciZ2kUwasuFqPZP2orQ3FlUBLSP3UVqoreXvntpQ864sH z71Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=2GE6Q0D3nEM9QK+CkQht2Y4pLl2s1etXJlLVBzJ5ih8=; b=zqks/ZNrkzhRLUEZk9JIgYCVseHlMmKjc3wT5kVzwTPlqzpHb1pN8O7Wko12oOPn8v 1/Qou5Gz6WACzCSaIIzyvAQWrPmopN+5s0Gsc3Gpe7M8aTeoXWZq6FbK5gDR1KQ+pRGC 0mdFok1bFtxXYpN0MKUG5eI37BHD3Eb15CyZ6d2t6dJgVLsegE9sgMUY/3CQM2O8RE07 FkuWV/d5kedHwimIOdG8Lt36lgHZ31tk3PP2z0yP2fY7LrHsN61ZIYn6JM9ZL5uWRa3J d1OT7uERpTzsNzQbgvXPJvhEHgha/AInpIqcBCLgmyrIJhH3TvEGGSreI4ldy74y7nXd siZQ== X-Gm-Message-State: AOAM532GsDG3qKiSDRfldYpfQeeh6ZnmN6ptKTmEn91fezZf7xeBf95Y yDwJ5iFQNz3yNdH3s4WkW+LEzGDc+3NvVdzHJER0GQ== X-Received: by 2002:a2e:9f4a:: with SMTP id v10mr2598113ljk.79.1644322532310; Tue, 08 Feb 2022 04:15:32 -0800 (PST) Received: from wse-c0127 ([208.127.141.29]) by smtp.gmail.com with ESMTPSA id m26sm1900240lfp.45.2022.02.08.04.15.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Feb 2022 04:15:31 -0800 (PST) From: Hans Schultz X-Google-Original-From: Hans Schultz To: Andrew Lunn , Hans Schultz Cc: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org, Vivien Didelot , Florian Fainelli , Vladimir Oltean , linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next 3/4] net: dsa: mv88e6xxx: Add support for bridge port locked feature In-Reply-To: References: <20220207100742.15087-1-schultz.hans+netdev@gmail.com> <20220207100742.15087-4-schultz.hans+netdev@gmail.com> Date: Tue, 08 Feb 2022 13:14:45 +0100 Message-ID: <86mtj1lfm2.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE 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 On m=C3=A5n, feb 07, 2022 at 15:05, Andrew Lunn wrote: > On Mon, Feb 07, 2022 at 11:07:41AM +0100, Hans Schultz wrote: >> Supporting bridge port locked mode using the 802.1X mode in Marvell >> mv88e6xxx switchcores is described in the '88E6096/88E6097/88E6097F >> Datasheet', sections 4.4.6, 4.4.7 and 5.1.2.1 (Drop on Lock). > > This implementation seems to be incorrect for 6390X, and maybe > others. I just picked a modern devices at random, and it is different, > so didn't check any other devices. The 6390X uses bits 14 and 15, not > just bit 14. > > So either you need to narrow down support to just those devices this > actually works for, or you need to add implementations for all > generations, via an op in mv88e6xxx_ops. > > Andrew The 6096 and 6097 also use both bits 15 and 14, with '01' being Drop On Lock and the default being '00' No SA filtering. '11' is drop to CPU, which can also be used for 801.1X, so 'x1' should suffice for these devices, thus setting bit 14 seems appropriate.