From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.182 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796350838; b=uXirsN+7uje31orsrDmvz/FuGa76Whe1J59GKIy+K2jvpKQEf9/xKmib2O4v1p1C7t8o S8LLo7bL8czjh302LNuYXEYQgK6m4nA/zc3e5PJFwwXHP5iL2tZF8EDyWBlLbaD7+LTse 1eZ/DBsvEd5/XBIxfl7j+M03x9MbHcuOXhaktJbZcxnU4imIGjzahzfp/OqBsT1oIzuTs SAJ1UFtEqAgj0zIQFhywxbcWSdn7gJbNa2C9YRzVuKEsEuT7/bBHy32/Y9jpSAgmUXpX7 epkj78qqM/iUKCVtIrlIAzLeC7IqkKmP8dk07L28C4ZftIpUoVSjaEUZF8q2Jb6xIng== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796350838; h=DMARC-Filter:Received:X-Google-DKIM-Signature:X-Forwarded-Encrypted: X-Gm-Message-State:X-Gm-Gg:X-Received:Received:From:To:Cc:Subject: Date:Message-ID:X-Mailer:In-Reply-To:References:MIME-Version: Content-Type:Content-Transfer-Encoding; bh=TihbNCo8o9w4zVlKUSx6B6vmXT6MmlJRaBpbT3DNvD8=; b=BPj4rDQG3nSeKdQv1jsF85DD9vBKr3Elxvnlu0N9SkJpFTk8JB8nNbjZRi3+vMKwOXDv lKZ4rypMtMeDxxla/E87YMdE5fN8E9s6O/ZIWoK0QosiIIfQSlNNy5flL5756jqOqbeS/ CHoagPFeEpkJeXVCek2qkvzRJH2EdeQfTmcozeE+F72MkUu2V7GADcu73GeSxcS8IjWAA F/0UmRQGHYE8V8A30uwYqPMFHVy1bEKeMaScg71FS8mbjEPC/qY2LjJIn4q+Q8dYKnx8x LIN3q24S0PaPdNw3K8kbm0OY68dsfD+jE5hWQG1hCB0ltmb1QD0p+Qei8IIBwXWW7/Q== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none header.from=telaak.dev; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.remote-ip=209.85.128.182 Received: from mail-yw1-f182.google.com (mail-yw1-f182.google.com [209.85.128.182]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D8BC9606A322 for ; Fri, 4 Dec 2026 02:20:37 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org D8BC9606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=telaak.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-yw1-f182.google.com with SMTP id 00721157ae682-8b4efdc8c20so2860547b3.1 for ; Thu, 03 Dec 2026 18:20:37 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796350837; x=1796955637; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=TihbNCo8o9w4zVlKUSx6B6vmXT6MmlJRaBpbT3DNvD8=; b=w1dSFFa6A1IlBwmqKhH4Sk2mx9zBbZfRMTe+ZxUJoV62CRZXUQq7AdpFTpp0LINJXL yfdDCwZ9Tauuna69skhusf02pTopL14KLgabu9vvGA/t+XKBNcnRAIMuSu33zUYDs5bJ UjCVzrRqIudJx/F5Rorvy5xA4UbzMfGHyQgBP3hpru3sfd62uy1tKOq9n8ezd0r7kjNB 0pmU47qvkNNnYK4i1kvK19Jt27oL16aO1u4M50HR6Qu5NYOU+TLtbNQYu6T8xCX7ldUD RxUcJBFY/J6u5ekrxCfF2dvW4fowBNPNvv911gBedHHUuOlk2gqPzbFVaS+G9pyxeiSJ Si/w== X-Forwarded-Encrypted: i=1; AL+hErF3ln9nccMg5No6xEYHrphILz9rX9e6Vi5Z/CB154anoizJN0Ll5O7AHDKZuawwCnKacGL9RUI16HZ6/1g=@vger.kernel.org X-Gm-Message-State: APuU4Z+WVRtcaPcwCA159EbdCSmyF/REGxu6CDcXyY16sXlniizc4St7 gNuJnuJ4KwmXSh7W0LCExlp5S5ZehGLAjRNH34CNfEaqntTuonw/HJ7r X-Gm-Gg: AZFdTZezj3uZdNVtPopEV0f1/aDdSz7szJHD/6QuJwmtf94+q2LDEVoWft3+0nSvUzE adUmBPC9zitAE4TAtT3VteS+L2HF1CYgtLz3xAHGQ9h/so5lgz14n9U5oFlSzlg5+FQyWaWTfCe 7UDJ0hKxJk1OMb+LYhb+DMMFptaE4vYk1zghBP5ch+mDNFmGy5QZvGCgSRfZwe8e4rkG3TImlZd yWbcawNjQ6T1XqanW7Lsjtguh4ETCqaIagw+ey11pVawvfp8K405027Z/K5ZSsM3/CDCSFcmYUc Ezp2wAS5LbUo6+fg6R8R0dcWErp5HhX905+53nWZjFGYO+A1fybEnk1jFawmgsYEED/EP9U12/I jGxLHJrRRH1nRpsCUZ0E+eAAzfp0mE2GKDIAQ11l3MMUxdzDYj0qkDJ+J2nhWTsTB30Ixk8bg7w x9rncPzdd1bEf9JES7O8kTs5n3+OYMN+qDsvTD6uN9O7kDvm0nkcJW3v/ek1UUWfjIREzdlgXj4 PQnajDBJWjakyx62FtBmRl/WpoaQ+3y+6itoazsOkuoeGszREygUgdzLMpLdjuZDiwWEdo/hlLw QxWhMv+OE12RGyf+bM0SSxOWYxQUB0QoiHXWaEpd9M7sPNxW7TP3KlwJ5pJL7hu2t1LUWWD7lBy C9tgXxnZFDLVaSVTg3Jg6L3KJ+FGmv6k= X-Received: by 2002:a05:690c:4d46:b0:8ac:6e11:3dde with SMTP id 00721157ae682-8b660dd8662mr4837907b3.60.1796350836748; Thu, 03 Dec 2026 18:20:36 -0800 (PST) Received: from localhost.localdomain ([71.68.170.161]) by smtp.gmail.com with ESMTPSA id 00721157ae682-8b660d93133sm3840947b3.28.2026.12.03.18.20.34 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 03 Dec 2026 18:20:35 -0800 (PST) From: Joseph Telaak To: netdev-bot+sashiko@kernel.org Cc: florian.fainelli@broadcom.com, jonas.gorski@gmail.com, andrew@lunn.ch, olteanv@gmail.com, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, f.fainelli@gmail.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next v3] net: dsa: b53: mirror CPU-bound frames to port 5 when port 8 is unused Date: Thu, 3 Dec 2026 21:20:33 -0500 Message-ID: <20261204022033.92258-1-joseph@telaak.dev> X-Mailer: git-send-email 2.50.1 In-Reply-To: <179630004040.3146.11125368359194350098@kernel.org> References: <20261130-b53-bpdu-mirror-v3-1-3d82c0e0571f@telaak.dev> <179630004040.3146.11125368359194350098@kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit On Thu, Dec 03, 2026 at 07:14AM, netdev-bot+sashiko@kernel.org wrote: > This check covers every 531x5 part (BCM53101, 53115, 53125, 53128, > 53134) whenever port 5 is the CPU port, tags are on and port 8 is not in > DT. Does "unused in DT" reliably mean that port 8 is physically > unconnected and can transmit with a forced link? Not reliably. Port 8's interface comes from the IMP_MODE straps, which select RGMII, MII, RvMII or GMII. In RGMII, GMII and RvMII the switch drives its own transmit clock, so port 8 sends with nothing attached. In MII mode the clock comes from the other side, so with nothing there the mirror would get nothing. I only tested a BCM53125 strapped to RGMII. A MAC that is wired to port 8 but left out of the DT would get the mirrored copies. With Rx disabled on port 8 (below), it can't send anything into the switch. Florian, Jonas: the public BCM53125 datasheet documents the IMP_MODE straps but no register that reports them, and b53 only defines B53_STRAP_VALUE (page 01h, 0x70) for the 53115. Is there one on the 531x5 parts? If so, v4 can skip the mirror when port 8 is strapped to MII. If not, would you rather v4 enable it only on the BCM53125, which is what I tested? > Would it be enough for the egress mirror to keep PORT_CTRL_RX_DISABLE > set here along with PORT_CTRL_DIS_STATE? Yes. The mirror only needs port 8 to transmit, so v4 will keep Rx disabled on it. pw-bot: cr Thanks, Joseph