netlink: settings: add netlink support for RX CQE Coalescing params
PATCH 1/1 netlink: settings: add netlink support for RX CQE Coalescing params
From: Haiyang Zhang <[email protected]>
Add support to get/set RX CQE Coalescing parameters, including the max frames and time out value in nanoseconds.
(Headers: dc3d720e12f6 "net: ethtool: add ethtool COALESCE_RX_CQE_FRAMES/NSECS")
--- ethtool.8.in | 2 ++ ethtool.c | 2 ++ netlink/coalesce.c | 17 +++++++++++++++++ netlink/desc-ethtool.c | 2 ++ shell-completion/bash/ethtool | 2 ++ 5 files changed, 25 insertions(+)
ethtool.8.in +2 -0
@@ -198,6 +198,8 @@ ethtool \- query or control network driver and hardware settings .BN tx\-aggr\-max\-bytes .BN tx\-aggr\-max\-frames .BN tx\-aggr\-time\-usecs +.BN rx\-cqe\-frames +.BN rx\-cqe\-nsecs .HP .B ethtool \-g|\-\-show\-ring .I devname
ethtool.c +2 -0
@@ -5925,6 +5925,8 @@ static const struct option args[] = {" [tx-aggr-max-bytes N]\n" " [tx-aggr-max-frames N]\n" " [tx-aggr-time-usecs N]\n" +" [rx-cqe-frames N]\n" +" [rx-cqe-nsecs N]\n" }, { .opts = "-g|--show-ring",
netlink/coalesce.c +17 -0
@@ -96,6 +96,11 @@ int coalesce_reply_cb(const struct nlmsghdr *nlhdr, void *data)show_u32 ("tx-aggr-time-usecs" ,"tx-aggr-time-usecs:\t" , tb[ETHTOOL_A_COALESCE_TX_AGGR_TIME_USECS ]);show_cr (); +show_u32 ("rx-cqe-frames" ,"rx-cqe-frames:\t\t" , + tb[ETHTOOL_A_COALESCE_RX_CQE_FRAMES ]); +show_u32 ("rx-cqe-nsecs" ,"rx-cqe-nsecs:\t\t" , + tb[ETHTOOL_A_COALESCE_RX_CQE_NSECS ]); +show_cr ();close_json_object ();
@@ -292,6 +297,18 @@ static const struct param_parser scoalesce_params[] = { .handler = nl_parse_direct_u32, .min_argc = 1, }, + { + .arg = "rx-cqe-frames", + .type = ETHTOOL_A_COALESCE_RX_CQE_FRAMES, + .handler = nl_parse_direct_u32, + .min_argc = 1, + }, + { + .arg = "rx-cqe-nsecs", + .type = ETHTOOL_A_COALESCE_RX_CQE_NSECS, + .handler = nl_parse_direct_u32, + .min_argc = 1, + }, {} };
netlink/desc-ethtool.c +2 -0
@@ -249,6 +249,8 @@ static const struct pretty_nla_desc __coalesce_desc[] = {NLATTR_DESC_U32 (ETHTOOL_A_COALESCE_TX_AGGR_TIME_USECS ),NLATTR_DESC_NESTED (ETHTOOL_A_COALESCE_RX_PROFILE ,profile ),NLATTR_DESC_NESTED (ETHTOOL_A_COALESCE_TX_PROFILE ,profile ), +NLATTR_DESC_U32 (ETHTOOL_A_COALESCE_RX_CQE_FRAMES ), + NLATTR_DESC_U32(ETHTOOL_A_COALESCE_RX_CQE_NSECS), };static const struct pretty_nla_desc __pause_stats_desc[] = {
shell-completion/bash/ethtool +2 -0
@@ -259,6 +259,8 @@ _ethtool_coalesce() [tx-aggr-max-bytes]=1 [tx-aggr-max-frames]=1 [tx-aggr-time-usecs]=1 + [rx-cqe-frames]=1 + [rx-cqe-nsecs]=1 ) case "$prev" in
Signature · 1 line
2.34.1
This patch was applied to ethtool/ethtool.git (next) by Michal Kubecek <[email protected]>:
Hello:
This patch was applied to ethtool/ethtool.git (next) by Michal Kubecek <[email protected]>:
Quoted 8 lines · On Fri, 20 Mar 2026 13:31:59 -0700 you wrote:
From: Haiyang Zhang <[email protected]>
Add support to get/set RX CQE Coalescing parameters, including the max frames and time out value in nanoseconds.
(Headers:
dc3d720e12f6"net: ethtool: add ethtool COALESCE_RX_CQE_FRAMES/NSECS")[...]
Here is the summary with links:
- [ethtool-next] netlink: settings: add netlink support for RX CQE Coalescing params
https://git.kernel.org/pub/scm/network/ethtool/ethtool.git/commit/?id=d35d87fbcda9
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html