]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: mana: Add ethtool counters for RX CQEs in coalesced type
authorHaiyang Zhang <haiyangz@microsoft.com>
Tue, 17 Mar 2026 19:18:07 +0000 (12:18 -0700)
committerJakub Kicinski <kuba@kernel.org>
Thu, 19 Mar 2026 03:01:10 +0000 (20:01 -0700)
commitd01440e10a82cae2c4a28c76e46e6a8b94b27a84
treead410ae901b27829fef124f791adb75502f4e2ea
parentc2fe3ff3d66d6f53ec5857c277fae5b3ff9881c1
net: mana: Add ethtool counters for RX CQEs in coalesced type

For RX CQEs with type CQE_RX_COALESCED_4, to measure the coalescing
efficiency, add counters to count how many contains 2, 3, 4 packets
respectively.
Also, add a counter for the error case of first packet with length == 0.

Reviewed-by: Long Li <longli@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Link: https://patch.msgid.link/20260317191826.1346111-4-haiyangz@linux.microsoft.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/microsoft/mana/mana_en.c
drivers/net/ethernet/microsoft/mana/mana_ethtool.c
include/net/mana/mana.h