net: renesas: rswitch: enable only used MFWD features
authorNikita Yushchenko <nikita.yoush@cogentembedded.com>
Mon, 9 Dec 2024 06:24:11 +0000 (11:24 +0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 Dec 2024 12:35:51 +0000 (12:35 +0000)
commit54d3970548bd9de40f921c95f8c31e1b1b2382cb
tree65f2976396c61ea344bdcf552f02271145195e2c
parent65fb414c93f486cef5408951350f20552113abd0
net: renesas: rswitch: enable only used MFWD features

Currently, rswitch driver does not utilize most of MFWD forwarding
and processing features. It only uses port-based forwarding for ETHA
ports, and direct descriptor forwarding for GWCA port.

Update rswitch_fwd_init() to enable exactly that, and keep everything
else disabled.

Signed-off-by: Nikita Yushchenko <nikita.yoush@cogentembedded.com>
Reviewed-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Tested-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/renesas/rswitch.c
drivers/net/ethernet/renesas/rswitch.h