netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next v2 0/3] net: airoha: Add per-flow stats support to hw flowtable offloading
@ 2025-05-16  7:59 Lorenzo Bianconi
  2025-05-16  7:59 ` [PATCH net-next v2 1/3] net: airoha: npu: Move memory allocation in airoha_npu_send_msg() caller Lorenzo Bianconi
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Lorenzo Bianconi @ 2025-05-16  7:59 UTC (permalink / raw)
  To: Andrew Lunn, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Lorenzo Bianconi
  Cc: linux-arm-kernel, linux-mediatek, netdev

Introduce per-flow stats accounting to the flowtable hw offload in the
airoha_eth driver. Flow stats are split in the PPE and NPU modules:
- PPE: accounts for high 32bit of per-flow stats
- NPU: accounts for low 32bit of per-flow stats

---
Changes in v2:
- fix memory leaks in airoha_npu_stats_setup() and in
  airoha_npu_foe_commit_entry()
- disable hw keepalive
- fix sparse warnings
- Link to v1: https://lore.kernel.org/r/20250514-airoha-en7581-flowstats-v1-0-c00ede12a2ca@kernel.org

---
Lorenzo Bianconi (3):
      net: airoha: npu: Move memory allocation in airoha_npu_send_msg() caller
      net: airoha: Add FLOW_CLS_STATS callback support
      net: airoha: ppe: Disable packet keepalive

 drivers/net/ethernet/airoha/Kconfig              |   7 +
 drivers/net/ethernet/airoha/airoha_eth.h         |  33 +++
 drivers/net/ethernet/airoha/airoha_npu.c         | 178 ++++++++++-----
 drivers/net/ethernet/airoha/airoha_npu.h         |   4 +-
 drivers/net/ethernet/airoha/airoha_ppe.c         | 270 +++++++++++++++++++++--
 drivers/net/ethernet/airoha/airoha_ppe_debugfs.c |   9 +-
 6 files changed, 427 insertions(+), 74 deletions(-)
---
base-commit: 894fbb55e60cab4ea740f6c65a08b5f8155221f4
change-id: 20250415-airoha-en7581-flowstats-7e69cf3fd94d

Best regards,
-- 
Lorenzo Bianconi <lorenzo@kernel.org>


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2025-05-21  3:10 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-16  7:59 [PATCH net-next v2 0/3] net: airoha: Add per-flow stats support to hw flowtable offloading Lorenzo Bianconi
2025-05-16  7:59 ` [PATCH net-next v2 1/3] net: airoha: npu: Move memory allocation in airoha_npu_send_msg() caller Lorenzo Bianconi
2025-05-19 12:13   ` Simon Horman
2025-05-16  8:00 ` [PATCH net-next v2 2/3] net: airoha: Add FLOW_CLS_STATS callback support Lorenzo Bianconi
2025-05-19  9:46   ` Simon Horman
2025-05-19  9:55     ` Lorenzo Bianconi
2025-05-19 12:10       ` Simon Horman
2025-05-16  8:00 ` [PATCH net-next v2 3/3] net: airoha: ppe: Disable packet keepalive Lorenzo Bianconi
2025-05-19 12:13   ` Simon Horman
2025-05-21  3:10 ` [PATCH net-next v2 0/3] net: airoha: Add per-flow stats support to hw flowtable offloading patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).