Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp1633306rwb; Wed, 26 Jul 2023 16:07:55 -0700 (PDT) X-Google-Smtp-Source: APBJJlEsJXMjNJzoaKP2vg/FJ7o7yIxPdgi0Pb2D11P2oXTyGe1VZYLdJuJ4uEqqnXHATyT980lh X-Received: by 2002:a05:6870:8290:b0:1bb:b13c:7f9c with SMTP id q16-20020a056870829000b001bbb13c7f9cmr1082988oae.57.1690412874844; Wed, 26 Jul 2023 16:07:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690412874; cv=none; d=google.com; s=arc-20160816; b=Ien3pXIajLRhk7CoxC6Tl2Eh3psDbr4pMnO10cMjym6F+jAK6fMdrlwJ+pXd+11XSE Sb+FAfuIPBwTAzgDkZyRjnszh2JbIN+HLKF/1T7C4LvPo938UMxZw5GIZM0GtO4XWRDx U+0Jk1mejEOOO1inK5yPdisSC8qTQWLzmZHkibnGDGM++pSYzXu7tnYVGTESkM6K2N4/ fyOnUXG9REdGv84JAkQ4z33qi6egK7CUxbx6gQgXqpD4iWLh8kdr4RpD1fC20Rs9+ceK 1iEZ8v3dpJDgmTexZNIfR6osok1rCHHP0Av0xJi4tOn7y1D/LCaC05sshOUMbu1zLJRk Qreg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=8AGk4Id4IfNgApVT6Qf0u2+a1oLhULyxKd2nOf0u9uw=; fh=QAYBuZ458+xB2VdPIGPhZzkDqk0hr0fevJ3iy9PtWBA=; b=MHIwQyKjzg0Qaa5TMQwwpd0e2squNu9jB3z430+50l9/JoIU0IlXXFuIH29x/AdW6+ ibCKim++pfvy5WXGyveVwncr9KL8wdRcBsduicSqZBJL3MMgum2+GXRaZY6913oFGsxX jIqHLmuff/VNm6emhP9FCBhNfcJRMv4CwgLVFsLIDkTS8Vh7ynKYDffg+wsjpi2yt9wO RX8CRQ4dTmTu05Q6jhu49Qd5Kce6wi+I9hyWlxyrzz4N8ZGzzBoPhpIqFargUn+RSmJD U0MfHuwA7+4I44Hy6h9MVUGOAALrPjpLIZe6xevbmTUVWY0JW5tVFsM0mKt/gmSqT6y0 nXdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=WxPJ9sxV; 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 l65-20020a639144000000b00563f02cd612si41924pge.745.2023.07.26.16.07.40; Wed, 26 Jul 2023 16:07:54 -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=20221208 header.b=WxPJ9sxV; 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 S230120AbjGZWWZ (ORCPT + 99 others); Wed, 26 Jul 2023 18:22:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229500AbjGZWWX (ORCPT ); Wed, 26 Jul 2023 18:22:23 -0400 Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 25BDF1BFF; Wed, 26 Jul 2023 15:22:23 -0700 (PDT) Received: by mail-pl1-x629.google.com with SMTP id d9443c01a7336-1bbd03cb7c1so2017515ad.3; Wed, 26 Jul 2023 15:22:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690410142; x=1691014942; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=8AGk4Id4IfNgApVT6Qf0u2+a1oLhULyxKd2nOf0u9uw=; b=WxPJ9sxVnEPf3h4CN5hbcoU1Xry7Xzi3BxgGYELB0hpLshn9Vil3xsaKIzk8FzxQlz jqi+06yvZEKydnpUysL+XOypOtl9hY8wHKQ0YJPIpUYVJwisfBqyYTIdU9VrkjBBN6p5 S7Gj0E6+jFuXEcXxdxgMa/ldwCRfzJva/Ti8reDc6qvm8aE5yVeDPvzy2thNXkssGBRY S297ktpwv/xVM4NuYWm3ewsUWsmZzKilmflUI6jqZJYc2l4vgqgr8MFMJKOKsaI6XjOo vSPZi/TjEFeiwt1Z4A2p8uLltX8o2oQkjXQYALs/OU2GeTtcJmt74oRsqaPTowRWaxoz Jg8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690410142; x=1691014942; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=8AGk4Id4IfNgApVT6Qf0u2+a1oLhULyxKd2nOf0u9uw=; b=l79Ul/ObdVET+EA/MkQrHLBvXtaSRou62VZ1nM3dz3sID5rcD7Vd7qnAEMJRIp5G5d zYlFjROzacX9T0eQQE6AJf9tQMR/LqA9bK8YcDNsBCCzkVpQjLxpBXwe+NKFrc6UQwRe l+UosilQOQT1GFEhn37ttLh5Y36rXrmD5K9cqjn/NjKYhm0UGLwcv7rm/O7BJMklsHQZ pjFbj1POSYKpt2/u/PQCnLk2cQWikG4DsoXzirTGAY60KfCxagL3JSct0B/8FcdjE4PT EQINf4mPkZdrIYMorh+Tomfq8KNXVJwMBj0iYBR2QBY/P/c//bo/Kzhf9tJDe4Y5KmfL 5OEw== X-Gm-Message-State: ABy/qLZWG+eiGX7xy1g1aj88ozcHqvmvPSx1u2k4IDsQ0yeLYCn+pnlJ khGgokcQzXkggmrk3R8jTsA= X-Received: by 2002:a17:902:ea01:b0:1b7:fef7:d578 with SMTP id s1-20020a170902ea0100b001b7fef7d578mr3365754plg.41.1690410142398; Wed, 26 Jul 2023 15:22:22 -0700 (PDT) Received: from [10.67.48.245] ([192.19.223.252]) by smtp.googlemail.com with ESMTPSA id h14-20020a170902f7ce00b001ae0152d280sm42139plw.193.2023.07.26.15.22.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 26 Jul 2023 15:22:21 -0700 (PDT) Message-ID: <48dad8c9-c61c-8d08-de57-a1255dfa8228@gmail.com> Date: Wed, 26 Jul 2023 15:22:18 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [net-next PATCH 2/3] net: dsa: qca8k: make learning configurable and keep off if standalone Content-Language: en-US To: Christian Marangi , Andrew Lunn , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Atin Bainada , netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230724033058.16795-1-ansuelsmth@gmail.com> <20230724033058.16795-2-ansuelsmth@gmail.com> From: Florian Fainelli In-Reply-To: <20230724033058.16795-2-ansuelsmth@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 7/23/23 20:30, Christian Marangi wrote: > Address learning should initially be turned off by the driver for port > operation in standalone mode, then the DSA core handles changes to it > via ds->ops->port_bridge_flags(). > > Currently this is not the case for qca8k where learning is enabled > unconditionally in qca8k_setup for every user port. > > Handle ports configured in standalone mode by making the learning > configurable and not enabling it by default. > > Implement .port_pre_bridge_flags and .port_bridge_flags dsa ops to > enable learning for bridge that request it and tweak > .port_stp_state_set to correctly disable learning when port is > configured in standalone mode. > > Signed-off-by: Christian Marangi With the feedback from Vladimir being addressed: Reviewed-by: Florian Fainelli -- Florian