]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: airoha: Refactor src port configuration in airhoha_set_gdm2_loopback
authorLorenzo Bianconi <lorenzo@kernel.org>
Fri, 17 Oct 2025 09:06:20 +0000 (11:06 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 21 Oct 2025 11:07:05 +0000 (13:07 +0200)
commit9d5b5219f672c80bed4d4e15f0068e648cdca43b
tree5238129a0fc94985c4cb2eb85317045f9b733e54
parentc71a7a861ef02aa2bebb18c2f3385aa3f19094e0
net: airoha: Refactor src port configuration in airhoha_set_gdm2_loopback

AN7583 chipset relies on different definitions for source-port
identifier used for hw offloading. In order to support hw offloading
in AN7583 controller, refactor src port configuration in
airhoha_set_gdm2_loopback routine and introduce get_src_port_id
callback.

Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Link: https://patch.msgid.link/20251017-an7583-eth-support-v3-11-f28319666667@kernel.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/airoha/airoha_eth.c
drivers/net/ethernet/airoha/airoha_eth.h
drivers/net/ethernet/airoha/airoha_regs.h