Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp4124851rwi; Sat, 22 Oct 2022 05:35:19 -0700 (PDT) X-Google-Smtp-Source: AMsMyM440nNrJtyy7fg8XgfnXEFD8flyndOVZusz3PcKGgP9GbiNxFat2Mv1I/dFgWa1UTg3Wr21 X-Received: by 2002:a17:902:e885:b0:183:dcb7:c4f8 with SMTP id w5-20020a170902e88500b00183dcb7c4f8mr24233419plg.160.1666442119522; Sat, 22 Oct 2022 05:35:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666442119; cv=none; d=google.com; s=arc-20160816; b=QwRe+Ewt37nQujJrwlKG378R+RBTyni51TWqxMFC9L/2JP6NmbcGDERbNGxWMw2o78 8vZ/J/Y/BWiVJd/Ga3x1DIIUffvp+1/azZR0sD+sEX9nmJmgAN7ziDtvKU2DtxI3DFpK 5t1uku/gVzwI2AuGlWKImL0yQgLbdX8vCekV8yDnQEZq7tEqEfMqb6NenLQiHrsMm/Mo 9mwXngFSM1sOQ4AhPS0+C/2oj3dl0/+SNGp2EbGHwCOBxgvy4smtJ4HOR56GkChhCwpU W6/rdAF27CoRBXodFlTBZUKPibhqWA2hjFCe1nBPQ++iVNQ9ivZVvmGR3OYi6K7thP77 8zaw== 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=xJswdS7kC+5Dq/oSBvb9hTl0H5TWQ6aU0davE3hjl1Y=; b=hZ5NHxFluXtl1T8woi04csS7K4Bp4bmLqWZm34Q4+4cALakwm7fMfj5VAzMfp1bAxj /oxLEwucxFRQZuaj3stblRl2UZyxJMjaEr8pus+m5RL0Uni/ROI5IHaBFpi5nqTDMo4t Fm2W86pfNc4jHJuMrtMGvSgT2NHNUimf9he/YloPp1u06O/6vuvAzLvRxJ4Tm7NpdOcW ZrfF0mJX3WxOj6/zbZje18vdtqfephZUiM6Crnzf7PS7SumzCioiAzqsQyplXEdkYMOQ 5UqBvDAi8Hz2yzMh5vbFUf1+PcGqNBsSjBdyCWqPNi2NT/u6HgkmoGldkSLiG5jecGEN Y7pQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=dvzFO2xk; 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 o37-20020a634e65000000b0043bd8452080si27689565pgl.313.2022.10.22.05.35.07; Sat, 22 Oct 2022 05:35:19 -0700 (PDT) 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=dvzFO2xk; 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 S229568AbiJVMCJ (ORCPT + 99 others); Sat, 22 Oct 2022 08:02:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229711AbiJVMCH (ORCPT ); Sat, 22 Oct 2022 08:02:07 -0400 Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA6C22CF3B6; Sat, 22 Oct 2022 05:02:05 -0700 (PDT) Received: by mail-ed1-x533.google.com with SMTP id m15so14991331edb.13; Sat, 22 Oct 2022 05:02:05 -0700 (PDT) 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=xJswdS7kC+5Dq/oSBvb9hTl0H5TWQ6aU0davE3hjl1Y=; b=dvzFO2xkBvm/I20DsGFjUnIHX/SdJqe96jZQplwuGvJpQE4bAzpLO0o/eH7aNuN1tI UJcjmOTutwMDaISNJqVGDAnOtGq5GkpDWhHNxclYnyNCg+IdJZLja8Rf55StXWvKatpF yKnVmqSOFj+g5UFG75lcNmGxsSmbyHf3MG8LEsvNuYV26gmdyAMDkNCxLEkuM1c+NN+L Fa5Qnhk7EKEegtg5NV3PwfHWw5FJPQKv92qfP04bfdV1tdoo6uAuC13WTqfM5Xt3LblO BczxEoKr+pCJVLvA1jJ/hm7FlpgtHfG5xa3xhZ3VgL5kca9F+WGw25fyyz++/lAAMFDs dXHQ== 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=xJswdS7kC+5Dq/oSBvb9hTl0H5TWQ6aU0davE3hjl1Y=; b=fF6AIFAXmRtNWAQlMl69gk3ITN0kUfAy3P5Qnlye2csNrJsNP/qHXtozrEoXVU5n0O jbuLlifvI481tpGVaRIffkHCm/BS2Vd0DE+UzTRGMwmtt32IZvZxarDarOGia9b0WeO/ o9vDlPd0HSaynoXCVXwVfSV2JlHP0Xs1UHavfhGroYjhXK11Q/kYUdFYs0FFzBH5w4vy QHMQiHbaZFy+LOAswed7n8X7HcBPUpf9IQofKjrZjKX1V8Vj4uTuak25UV9VxB2LVbeD LKwrY0/QESf6aoOGSLdBadXDg0QU4Q5/2Ezvt6tRA1fAt66OhO8jgdLMjlDlnV3wkXhu LyaA== X-Gm-Message-State: ACrzQf2ggtWWLvpN18St833yosdbnuwQR9LIiv/vihKMFAX1lJbUhIz+ oXK0JWOyOXZa7scKub+ffWM= X-Received: by 2002:a17:907:a06e:b0:79f:e42d:8d54 with SMTP id ia14-20020a170907a06e00b0079fe42d8d54mr3497885ejc.72.1666440124277; Sat, 22 Oct 2022 05:02:04 -0700 (PDT) Received: from skbuf ([188.27.184.197]) by smtp.gmail.com with ESMTPSA id u13-20020aa7d54d000000b00458478a4295sm15051796edr.9.2022.10.22.05.02.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 22 Oct 2022 05:02:03 -0700 (PDT) Date: Sat, 22 Oct 2022 15:02:00 +0300 From: Vladimir Oltean To: netdev@kapio-technology.com Cc: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org, Oleksandr Mazur , Florian Fainelli , Andrew Lunn , Vivien Didelot , Eric Dumazet , Paolo Abeni , Kurt Kanzenbach , Hauke Mehrtens , Woojung Huh , UNGLinuxDriver@microchip.com, Sean Wang , Landen Chao , DENG Qingfang , Matthias Brugger , Claudiu Manoil , Alexandre Belloni , Jiri Pirko , Ivan Vecera , Roopa Prabhu , Nikolay Aleksandrov , Shuah Khan , Russell King , Christian Marangi , Daniel Borkmann , Yuwei Wang , Petr Machata , Ido Schimmel , Florent Fourcot , Hans Schultz , Joachim Wiberg , Amit Cohen , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, bridge@lists.linux-foundation.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH v8 net-next 10/12] net: dsa: mv88e6xxx: mac-auth/MAB implementation Message-ID: <20221022120200.no5pl54bcfa3wcnd@skbuf> References: <20221020225719.l5iw6vndmm7gvjo3@skbuf> <82d23b100b8d2c9e4647b8a134d5cbbf@kapio-technology.com> <20221021112216.6bw6sjrieh2znlti@skbuf> <7bfaae46b1913fe81654a4cd257d98b1@kapio-technology.com> <20221021163005.xljk2j3fkikr6uge@skbuf> <20221021173014.oit3qmpkrsjwzbgu@skbuf> <20221021181411.sv52q4yxr5r7urab@skbuf> <37dc7673fde2b8e166a5ed78431a2078@kapio-technology.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <37dc7673fde2b8e166a5ed78431a2078@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 Sat, Oct 22, 2022 at 09:24:56AM +0200, netdev@kapio-technology.com wrote: > I will not say that you are not making sense as for the mv88e6xxx, as it > needs port association in all cases with BR_PORT_LOCKED, MAB or not, and > port association is turned on in the driver with learning turned on. > > That said, there must be some resolution and agreement overall with this > issue to move on. Right now port association is turned on in the mv88e6xxx > driver when locking the port, thus setting learning off after locking will > break things. This already needs to be treated as a bug and fixed on its own. Forget about MAB. You're saying that when BR_LEARNING=on and BR_PORT_LOCKED=on, the mv88e6xxx driver works properly, but the software bridge is broken (learns from link-local multicast). When BR_LEARNING=off and BR_PORT_LOCKED=on, the software bridge is not broken, but the mv88e6xxx driver is, because it requires the PAV configured properly. And you're saying that I'm the one who suggests things should work differently in software mode vs offloaded mode?! Why don't you (a) deny BR_LEARNING + BR_PORT_LOCKED in the bridge layer (b) fix the mv88e6xxx driver to always keep the assoc_vector set properly for the port, if BR_LEARNING *or* BR_PORT_LOCKED is set?