RE: [PATCH net-next v4 05/13] net: renesas: rswitch: add exception path for packets with unknown dst MAC

From: Michael Dege

Date: Fri May 22 2026 - 07:15:04 EST


Hello Jakub,

Thank you very much for your review.

> -----Original Message-----
> From: Jakub Kicinski <kuba@xxxxxxxxxx>
> Sent: Wednesday, May 13, 2026 3:37 AM
> To: Michael Dege <michael.dege@xxxxxxxxxxx>
> Cc: Yoshihiro Shimoda <yoshihiro.shimoda.uh@xxxxxxxxxxx>; Andrew Lunn <andrew+netdev@xxxxxxx>; David
> S. Miller <davem@xxxxxxxxxxxxx>; Eric Dumazet <edumazet@xxxxxxxxxx>; Paolo Abeni <pabeni@xxxxxxxxxx>;
> niklas.soderlund <niklas.soderlund@xxxxxxxxxxxx>; Paul Barker <paul@xxxxxxxxxxx>;
> netdev@xxxxxxxxxxxxxxx; linux-renesas-soc@xxxxxxxxxxxxxxx; linux-kernel@xxxxxxxxxxxxxxx
> Subject: Re: [PATCH net-next v4 05/13] net: renesas: rswitch: add exception path for packets with
> unknown dst MAC
>
> On Mon, 11 May 2026 10:52:08 +0200 Michael Dege wrote:
> > Packets with unknown MAC address cannot be handled by the HW forwarding.
> > These need to be forwarded, via an exception path, to the network driver.
> >
> > Creates a queue for the exeption path. Packets received with unknown
> > src/dst address need to be passed to the CPU. The received packet does
> > not have the correct source port information, this is derived from the
> > descriptor and added to the new queue. The received packet is added to
> > the new queue and sent to the CPU for MAC learning. The CPU will
> > broadcast the received packet, to all ports. This is how the HW learns
> > the new MAC address.
>
> I sent the AI reviews out just in case, main reason I'm dropping this from pw is the new sparse build
> warning here:

The AI reviews have been very helpful for the most part.
>
> drivers/net/ethernet/renesas/rswitch_main.c:1015:23: warning: cast to restricted __le64
> drivers/net/ethernet/renesas/rswitch_main.c:1015:23: warning: restricted __le64 degrades to integer
> drivers/net/ethernet/renesas/rswitch_main.c:1015:23: warning: restricted __le64 degrades to integer

This is now fixed.

Best regards,

Michael