]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: renesas: rswitch: add offloading for L2 switching
authorMichael Dege <michael.dege@renesas.com>
Mon, 1 Sep 2025 04:58:07 +0000 (06:58 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 4 Sep 2025 07:43:23 +0000 (09:43 +0200)
commitb7502b1043de86967ff341819d05e09a8dbe8b2b
treeae59d116b40465d255d84484e77ea9a5d8a19e09
parent622303250c51b8104e23da5f6b3eff65924a80b7
net: renesas: rswitch: add offloading for L2 switching

Add hardware offloading for L2 switching on R-Car S4.

On S4 brdev is limited to one per-device (not per port). Reasoning
is that hw L2 forwarding support lacks any sort of source port based
filtering, which makes it unusable to offload more than one bridge
device. Either you allow hardware to forward destination MAC to a
port, or you have to send it to CPU. You can't make it forward only
if src and dst ports are in the same brdev.

Signed-off-by: Nikita Yushchenko <nikita.yoush@cogentembedded.com>
Signed-off-by: Michael Dege <michael.dege@renesas.com>
Link: https://patch.msgid.link/20250901-add_l2_switching-v5-3-5f13e46860d5@renesas.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/renesas/Makefile
drivers/net/ethernet/renesas/rswitch.h
drivers/net/ethernet/renesas/rswitch_l2.c [new file with mode: 0644]
drivers/net/ethernet/renesas/rswitch_l2.h [new file with mode: 0644]
drivers/net/ethernet/renesas/rswitch_main.c