]> git.ipfire.org Git - thirdparty/linux.git/commit
net: airoha: Move {cpu,fwd}_tx_packets in airoha_gdm_dev struct
authorLorenzo Bianconi <lorenzo@kernel.org>
Wed, 27 May 2026 10:21:19 +0000 (12:21 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 2 Jun 2026 20:24:26 +0000 (13:24 -0700)
commit962c17dd287887aa87a6f30d64239d7e1e4e05fa
tree14e2688708657c8c0b78caa1a33e5e42836054d5
parent069626af6dfaa26b82119900f4aff1fec38d5983
net: airoha: Move {cpu,fwd}_tx_packets in airoha_gdm_dev struct

Since now multiple net_devices connected to different QDMA blocks can
share the same GDM port, cpu_tx_packets and fwd_tx_packets fields can
be overwritten with the value from a different QDMA block. In order to
fix the issue move cpu_tx_packets and fwd_tx_packets fields from
airoha_gdm_port struct to airoha_gdm_dev one.

Tested-by: Xuegang Lu <xuegang.lu@airoha.com>
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Link: https://patch.msgid.link/20260527-airoha-eth-multi-serdes-preliminary-v1-5-ec6ed73ef7fc@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/airoha/airoha_eth.c
drivers/net/ethernet/airoha/airoha_eth.h