Re: [PATCH net-next v4 05/13] net: renesas: rswitch: add exception path for packets with unknown dst MAC
From: Jakub Kicinski
Date: Tue May 12 2026 - 21:39:00 EST
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:
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