From: sashiko-bot@kernel.org
To: "Jens Emil Schulz Østergaard" <jensemil.schulzostergaard@microchip.com>
Cc: conor+dt@kernel.org, robh@kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH net-next v10 4/9] net: dsa: lan9645x: add basic dsa driver for LAN9645X
Date: Tue, 14 Jul 2026 14:43:45 +0000 [thread overview]
Message-ID: <20260714144346.22BB41F00A3D@smtp.kernel.org> (raw)
In-Reply-To: <20260713-dsa_lan9645x_switch_driver_base-v10-4-a4886a08fb15@microchip.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] Missing FDB operations and omission of the CPU port in PGID_UC breaks unicast IP traffic to the CPU.
--
--- Patch [4]: [PATCH net-next v10 4/9] net: dsa: lan9645x: add basic dsa driver for LAN9645X ---
commit 996cf37c0fe28c352442c3b82c0b401974b8f66a
Author: Jens Emil Schulz Østergaard <jensemil.schulzostergaard@microchip.com>
net: dsa: lan9645x: add basic dsa driver for LAN9645X
Add the LAN9645X basic DSA driver with initialization, parent regmap requests,
port module initialization for NPI, CPU ports and front ports, and phylink
integration for MAC side configuration.
> diff --git a/drivers/net/dsa/microchip/lan9645x/lan9645x_main.c b/drivers/net/dsa/microchip/lan9645x/lan9645x_main.c
> new file mode 100644
> index 0000000000000..b253813518c20
> --- /dev/null
> +++ b/drivers/net/dsa/microchip/lan9645x/lan9645x_main.c
[ ... ]
> @@ -0,0 +1,447 @@
[ ... ]
> +static int lan9645x_setup(struct dsa_switch *ds)
> +{
[ ... ]
> + /* Multicast to all front ports */
> + lan_wr(front_ports, lan9645x, ANA_PGID(PGID_MC));
> +
> + /* IP multicast to all front ports */
> + lan_wr(front_ports, lan9645x, ANA_PGID(PGID_MCIPV4));
> + lan_wr(front_ports, lan9645x, ANA_PGID(PGID_MCIPV6));
> +
> + /* Unicast to all front ports */
> + lan_wr(front_ports, lan9645x, ANA_PGID(PGID_UC));
[Severity: High]
Does omitting the CPU port module (BIT(lan9645x->num_phys_ports)) from the
unknown unicast flooding mask (PGID_UC) prevent unicast traffic from reaching
the CPU?
Since hardware learning is disabled in lan9645x_port_setup() via
ANA_PORT_CFG_LEARN_ENA_SET(0), and the lan9645x_switch_ops struct lacks a
port_fdb_add callback to statically program the CPU's MAC address, unicast
frames destined for the CPU will be treated as unknown unicast.
Because PGID_UC only includes front_ports, it appears these unknown unicast
frames will be flooded to the front ports but not to the CPU, effectively
breaking unicast IP connectivity (such as ARP replies) to the host.
> +
> + /* Broadcast to cpu and all front ports */
> + lan_wr(BIT(lan9645x->num_phys_ports) | front_ports, lan9645x,
> + ANA_PGID(PGID_BC));
[ ... ]
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260713-dsa_lan9645x_switch_driver_base-v10-0-a4886a08fb15@microchip.com?part=4
next prev parent reply other threads:[~2026-07-14 14:43 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-13 14:32 [PATCH net-next v10 0/9] net: dsa: add DSA support for the LAN9645x switch chip family Jens Emil Schulz Østergaard
2026-07-13 14:32 ` [PATCH net-next v10 1/9] net: dsa: add tag driver for LAN9645X Jens Emil Schulz Østergaard
2026-07-14 14:43 ` sashiko-bot
2026-07-13 14:32 ` [PATCH net-next v10 2/9] dt-bindings: net: lan9645x: add LAN9645X switch bindings Jens Emil Schulz Østergaard
2026-07-14 14:43 ` sashiko-bot
2026-07-13 14:32 ` [PATCH net-next v10 3/9] net: dsa: lan9645x: add autogenerated register macros Jens Emil Schulz Østergaard
2026-07-13 14:32 ` [PATCH net-next v10 4/9] net: dsa: lan9645x: add basic dsa driver for LAN9645X Jens Emil Schulz Østergaard
2026-07-14 14:43 ` sashiko-bot [this message]
2026-07-13 14:32 ` [PATCH net-next v10 5/9] net: dsa: lan9645x: add bridge support Jens Emil Schulz Østergaard
2026-07-13 14:32 ` [PATCH net-next v10 6/9] net: dsa: lan9645x: add vlan support Jens Emil Schulz Østergaard
2026-07-13 14:32 ` [PATCH net-next v10 7/9] net: dsa: lan9645x: add mac table integration Jens Emil Schulz Østergaard
2026-07-13 14:32 ` [PATCH net-next v10 8/9] net: dsa: lan9645x: add mdb management Jens Emil Schulz Østergaard
2026-07-13 14:32 ` [PATCH net-next v10 9/9] net: dsa: lan9645x: add port statistics Jens Emil Schulz Østergaard
2026-07-14 14:43 ` sashiko-bot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260714144346.22BB41F00A3D@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jensemil.schulzostergaard@microchip.com \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.