]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: mana: Add support for RX CQE Coalescing
authorHaiyang Zhang <haiyangz@microsoft.com>
Tue, 17 Mar 2026 19:18:06 +0000 (12:18 -0700)
committerJakub Kicinski <kuba@kernel.org>
Thu, 19 Mar 2026 03:01:10 +0000 (20:01 -0700)
commitc2fe3ff3d66d6f53ec5857c277fae5b3ff9881c1
treea7eb7ec7a4cbf8cdcac6c786604e33a536d167cf
parentdc3d720e12f602059490c1ab2bfee84a7465998f
net: mana: Add support for RX CQE Coalescing

Our NIC can have up to 4 RX packets on 1 CQE. To support this feature,
check and process the type CQE_RX_COALESCED_4. The default setting is
disabled, to avoid possible regression on latency.

And, add ethtool handler to switch this feature. To turn it on, run:
  ethtool -C <nic> rx-cqe-frames 4
To turn it off:
  ethtool -C <nic> rx-cqe-frames 1

The rx-cqe-nsec is the time out value in nanoseconds after the first
packet arrival in a coalesced CQE to be sent. It's read-only for this
NIC.

Reviewed-by: Long Li <longli@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Link: https://patch.msgid.link/20260317191826.1346111-3-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