Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2376642rwd; Fri, 16 Jun 2023 03:06:16 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4yFVMIZvHtNUjy3P+IzfzYa/B9BUEeO+KR+uMvlsg7/QLsbdovD9r93ozzJxLmMevBrzoU X-Received: by 2002:a05:6a20:2d25:b0:10c:5745:3f44 with SMTP id g37-20020a056a202d2500b0010c57453f44mr1492341pzl.61.1686909976166; Fri, 16 Jun 2023 03:06:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686909976; cv=none; d=google.com; s=arc-20160816; b=hSiDhGL+9Eg5ldoMWrKmrz1/W6ORpsnYVNyONy41EjdWlHN+Bgv0ldbGTxLUfqn/6m tGOwkh5qB4kVKVlJT0HkxFd0WSJISqmu8HblTwbWJskWhGM5shGn2FtCr93dbUF9Ml6W 1W1tZOszOzPhvlYKysOy7tr/5SA+8m1LL6NkwNnmDUeMrnxs3J4uwtRqzv+lZOAfUdJW B9uWlcszFnFR2rEp1gGNAjHiQVXkId1ucGniN6OqDYvBo/2s/STp33nU00eYruWGg9y1 bK2fhjstk6o1v2TZISfzKKbqJdjeW/3Fog9F2zWNdns+1ky8XzKVYOwhtPAAeJOJ9IXo gdAg== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=CTD9FM9Vp+btRQLrVajymg/zAFnLC/qJq3qRO1vQtsE=; b=jfRT3N4gHROqdekPhJLrBfhHWXkBQQyORSUVxiNjEojKdw1ZnkV9zSxfodMScN0noi Fve97tyJbwO+bhW/IidEjymzSg4Pcyms1eaZGgRlw+Xvf4s4tpEZU5m/Hh94CDYt1RoX I/OsYVZ1gqR7RIl5DbM2J1VFHEOcGMP4T/fT+Ge+tOAsWce/52fr7+33lzDGRNcezGxo UksuI4xZIoDOpiNdlafVeb3n8A766yJl6v2pL9xrzY3dYQ4bjh6jIq84ZrptB9g1S5iI YQbfcsU3G4qc+IUpnqBQ7da/xi5ODc6NBuYq892DYRYluZoRX0n/lpifCwIEAAM1zNUv B50g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=p5uAOLuX; 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 x15-20020aa79acf000000b0064d42dddf9fsi1330511pfp.32.2023.06.16.03.06.02; Fri, 16 Jun 2023 03:06:16 -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=p5uAOLuX; 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 S233380AbjFPKBm (ORCPT + 99 others); Fri, 16 Jun 2023 06:01:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232377AbjFPKBg (ORCPT ); Fri, 16 Jun 2023 06:01:36 -0400 Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63E5F2D54; Fri, 16 Jun 2023 03:01:35 -0700 (PDT) Received: by mail-ej1-x629.google.com with SMTP id a640c23a62f3a-982b1a18daeso75107766b.2; Fri, 16 Jun 2023 03:01:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686909694; x=1689501694; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=CTD9FM9Vp+btRQLrVajymg/zAFnLC/qJq3qRO1vQtsE=; b=p5uAOLuXx71MLpQNhpn4N0FFQkpI9/UNwpzCa9npQZiimQMI+dTK57ix5hFZ8pL0iT eM/jU6DLqslcFv9S5cRKyJ9DyVWLOZDOsZAJjclG0miP0XzxBdljxz8Qs9DT0KVGuV4Y hDovP96Nx4G7raTQV5C6TOMlOfhGf/8kfUdMhmnNfKxmL0Ztl3oKrW+hk5bGtznskvvt p7HID9ouqKpIcGhsKqjiSn1ewQgqCUuvnmBj9paMo59IT5jrcCml2vXZ59EwDBgF8l+d 92iNKDZTIBfZENDuXm1n40jOV8d0uypVfXB1kp9BFqsdjwVJbTWwXGrjN46LD85/qiXN 6how== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686909694; x=1689501694; h=in-reply-to:content-transfer-encoding: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=CTD9FM9Vp+btRQLrVajymg/zAFnLC/qJq3qRO1vQtsE=; b=Hi0H+Z+b8dkZh5MIoM/s+8je4IpGWCOusalvjpF1Chog+u+yS5dnMi0faYQbmxxv39 RWNj/OoJAzmC8Ft5wk0/4c8vLO9W9O1vTrEZAa4EvESdaFTIe1N7Kvbr3hQDRMQN8zmO IDRj5w6Ad1jCU0OQ/RY92+8ew0jsXD6G2BM3kPww5ODBcDzPFXeuSkXmTfxyKie4fQKe GPby8Vp/UbENiu9QOK0gYBMo5ThBscoAkJuEHhy1vtxVIBrZT+J/uRFwNsHPSTOdPixm zoiT+qyoIqFKRh2Bwg8Cbsl2kq0Mu7WJuL9Qk7CYB2ijlCW0nQ5FRnPtNu3xQUDo7d9g hZHA== X-Gm-Message-State: AC+VfDw8op6Kpmqt5FjIHCD9uuMgMpB66NzgGxf5x0m/vnK6wZ3hKh0t ufikRDZGpN9bwghgSvgXlq0= X-Received: by 2002:a17:906:8688:b0:97a:bd0f:ac74 with SMTP id g8-20020a170906868800b0097abd0fac74mr1180635ejx.26.1686909693612; Fri, 16 Jun 2023 03:01:33 -0700 (PDT) Received: from skbuf ([188.27.184.189]) by smtp.gmail.com with ESMTPSA id h22-20020a170906111600b009828bb40444sm2647818eja.51.2023.06.16.03.01.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Jun 2023 03:01:33 -0700 (PDT) Date: Fri, 16 Jun 2023 13:01:30 +0300 From: Vladimir Oltean To: arinc9.unal@gmail.com Cc: =?utf-8?B?QXLEsW7DpyDDnE5BTA==?= , Daniel Golle , Landen Chao , DENG Qingfang , Sean Wang , Andrew Lunn , Florian Fainelli , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger , AngeloGioacchino Del Regno , Russell King , Frank Wunderlich , Bartel Eerdekens , mithat.guner@xeront.com, erkin.bozoglu@xeront.com, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: Re: [PATCH net v5 1/6] net: dsa: mt7530: set all CPU ports in MT7531_CPU_PMAP Message-ID: <20230616100130.f7mjociopsgd6pe4@skbuf> References: <20230616025327.12652-1-arinc.unal@arinc9.com> <20230616025327.12652-1-arinc.unal@arinc9.com> <20230616025327.12652-2-arinc.unal@arinc9.com> <20230616025327.12652-2-arinc.unal@arinc9.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230616025327.12652-2-arinc.unal@arinc9.com> <20230616025327.12652-2-arinc.unal@arinc9.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,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 Fri, Jun 16, 2023 at 05:53:22AM +0300, arinc9.unal@gmail.com wrote: > From: Arınç ÜNAL > > MT7531_CPU_PMAP represents the destination port mask for trapped-to-CPU > frames (further restricted by PCR_MATRIX). > > Currently the driver sets the first CPU port as the single port in this bit > mask, which works fine regardless of whether the device tree defines port > 5, 6 or 5+6 as CPU ports. This is because the logic coincides with DSA's > logic of picking the first CPU port as the CPU port that all user ports are > affine to, by default. > > An upcoming change would like to influence DSA's selection of the default > CPU port to no longer be the first one, and in that case, this logic needs > adaptation. > > Since there is no observed leakage or duplication of frames if all CPU > ports are defined in this bit mask, simply include them all. > > Suggested-by: Russell King (Oracle) > Suggested-by: Vladimir Oltean > Signed-off-by: Arınç ÜNAL > --- Reviewed-by: Vladimir Oltean