Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp399833iob; Wed, 18 May 2022 04:51:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwWVSWBa1AwkIo8fzngJtIsq2C7vChLMrm68KcyZrqbyD+AWS1m5bTojO4FvUzx8Bxptpoj X-Received: by 2002:a17:902:e94e:b0:15b:22a7:f593 with SMTP id b14-20020a170902e94e00b0015b22a7f593mr26838196pll.148.1652874662291; Wed, 18 May 2022 04:51:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652874662; cv=none; d=google.com; s=arc-20160816; b=p7gmQcDDmYHJEBi4IhmCK9LWJJgstB/pQ1I0Aq6ILqeca8TTWhNeo/h863Po08AAAo Ezt9MVHezXj+CG9wYSs51ya85slfFReM/tiaq1INToYv2FFhHH4RKWjCfPoXw0Bw2NwX DTtZK41QQNKxwWGcDS49AwyOruwPLNMEJBL7Syn6pnVqm8Ttt8G95YIQBvdyk+qAzYDl JvbsDpN2rjSK0b3OA9mvMI1dGO6czpi/zuGqZq2MwDahdum7T5r5BFm18P9WLAVfUhli Hpo+OfVj/rSfe9B/OJaJd/TOtTwT2OjXMbtvM/u+EvaPzwvdv52Ixnpb5yAg/Hr5hJM1 LFuA== 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=iKmftTACwKl85v+K7ODpphTsqLyA4iR1rRxXpV4eOs8=; b=GTBXU2j357EeHNGGUR6nkax9ziIBblE/O5w5bdEnphRLqoU9XPo+zuXe86GSKPHVDC kFYLeuV8s8U9hY+twfncXA++372Nwpw8ZulWa1g0zNtn2+hBsrd0SWPka9aJMR7FvcKp nRhGYp2M5iV44aLjYKHRKPj+Q2J8LToUsp6l/F+sULZPrc2q81F7OmJFkgQRLAqA97lJ kmMVg1gRnakou+YXZ2KL96h8RatmcrxRJzXPZxMcqaM6iwRAqysA/8VVavUtES0CbAmO vJxESXfD4btmj9VkIm1xAQoL4qYX6Mus++8caYn01iuT/ePtZqJ9xyBBmDzruFODehF/ 1sVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=OTSJdAYA; 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 z27-20020a634c1b000000b003c6dde2affbsi2346010pga.126.2022.05.18.04.51.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 May 2022 04:51:02 -0700 (PDT) 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=OTSJdAYA; 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 833B926ACF; Wed, 18 May 2022 04:46:46 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235778AbiERLqW (ORCPT + 99 others); Wed, 18 May 2022 07:46:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235731AbiERLqA (ORCPT ); Wed, 18 May 2022 07:46:00 -0400 Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9CBCBF6D; Wed, 18 May 2022 04:45:58 -0700 (PDT) Received: by mail-ed1-x535.google.com with SMTP id g12so2645647edq.4; Wed, 18 May 2022 04:45:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=iKmftTACwKl85v+K7ODpphTsqLyA4iR1rRxXpV4eOs8=; b=OTSJdAYA1KWzJgDZibIIZi44eBvyBBU+GntJp9Kn9Mo9tJQL2SfuwRTyiv1i+cd5rK VwNusikmeqNOAi0eo75fc19WaBXjuWE7C6ZYoM0jOTR9XIAF15mFZCCwRDXHTM7WJmip VVa1DifM/bSXJbeNIO8yZPJ0XuKAKSfnfA+dIQmhCgwoeH+t7Qq74my4EWPEETnhgHee qAR9PC1AzCvWBXNUaQJsOnjN6E2ab98GlgfTjGwFfTFMZ46DLkDUCp3JBmzIrA+9mmQt B8gcY3dQKxraHEvV8IWnTLA6zacZvT6UdNtNBTefFLSTDVZeB6CICLFlK286JumzAr4w akeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=iKmftTACwKl85v+K7ODpphTsqLyA4iR1rRxXpV4eOs8=; b=t7UVWZuohSElUzssJz7YWY3Bs4GDWCUKYw8CVcOsZxdTMEHQqmSiO6QXdLRDeo20yu uh6plrJFJcxqyiHcEKHPqvC6yUJz37ON/ZX95BDufUWdiS4hsttlJIx0AV4WBMNcw2c4 gWqTvOtlV87+Y8PLGyLn1Oe0oC8adCOm+O6hDMBtr8j0S/PQyLLvNeF1+KsPsz9P+uhy xzO7oNuDrOGdQO+XJXiFC1BkxKJNkJYhfL+03jqkrhljN/0DXpt2ORcySJqg+4nu+RHj ikuDZkopkL2pAkmVNWtg19INOmn0THi8tlWGdw+pOloiEUO5ZnZlB+4INpfRrcuh5+f8 C43Q== X-Gm-Message-State: AOAM530rYUNqTY9zh7dSei7RpdCHaM3vIFLsUHyiHBdb0qWV9Fgg7DeJ h4gkZYJx0xuXEMcELdrqr18= X-Received: by 2002:a05:6402:90e:b0:425:a4bc:db86 with SMTP id g14-20020a056402090e00b00425a4bcdb86mr23675838edz.98.1652874357203; Wed, 18 May 2022 04:45:57 -0700 (PDT) Received: from skbuf ([188.25.255.186]) by smtp.gmail.com with ESMTPSA id f9-20020a170906738900b006fe8ec44461sm366774ejl.101.2022.05.18.04.45.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 May 2022 04:45:56 -0700 (PDT) Date: Wed, 18 May 2022 14:45:55 +0300 From: Vladimir Oltean To: Martin Blumenstingl Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, andrew@lunn.ch, vivien.didelot@gmail.com, f.fainelli@gmail.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, Hauke Mehrtens Subject: Re: [PATCH net v1 1/2] net: dsa: lantiq_gswip: Fix start index in gswip_port_fdb() Message-ID: <20220518114555.piutpdmdzvst2cvu@skbuf> References: <20220517194015.1081632-1-martin.blumenstingl@googlemail.com> <20220517194015.1081632-2-martin.blumenstingl@googlemail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220517194015.1081632-2-martin.blumenstingl@googlemail.com> 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 Hi Martin, On Tue, May 17, 2022 at 09:40:14PM +0200, Martin Blumenstingl wrote: > The first N entries in priv->vlans are reserved for managing ports which > are not part of a bridge. Use priv->hw_info->max_ports to consistently > access per-bridge entries at index 7. Starting at > priv->hw_info->cpu_port (6) is harmless in this case because > priv->vlan[6].bridge is always NULL so the comparison result is always > false (which results in this entry being skipped). > > Fixes: 58c59ef9e930c4 ("net: dsa: lantiq: Add Forwarding Database access") > Acked-by: Hauke Mehrtens > Signed-off-by: Martin Blumenstingl > --- The patch, as well as other improvements you might want to bring to the gswip driver (we have more streamlined support in DSA now for FDB isolation, see ds->fdb_isolation) is appreciated. But I don't think that a code cleanup patch that makes no functional difference, and isn't otherwise needed by other backported patches, should be sent to the "net" tree, and be backported to "stable" later?