aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/net/ethtool/rings.c
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2025-01-18 18:05:15 -0800
committerJakub Kicinski <kuba@kernel.org>2025-01-20 11:44:58 -0800
commit928459bbda19eb47e09d9bd4386ac46fad088958 (patch)
tree78e7dd6e15bbdcc93c9c4fecb80344d47f7de474 /net/ethtool/rings.c
parenteth: bnxt: apply hds_thrs settings correctly (diff)
downloadwireguard-linux-928459bbda19eb47e09d9bd4386ac46fad088958.tar.xz
wireguard-linux-928459bbda19eb47e09d9bd4386ac46fad088958.zip
net: ethtool: populate the default HDS params in the core
The core has the current HDS config, it can pre-populate the values for the drivers. While at it, remove the zero-setting in netdevsim. Zero are the default values since the config is zalloc'ed. Reviewed-by: Michael Chan <michael.chan@broadcom.com> Link: https://patch.msgid.link/20250119020518.1962249-6-kuba@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to '')
-rw-r--r--net/ethtool/rings.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/ethtool/rings.c b/net/ethtool/rings.c
index 5e8ba81fbb3e..7839bfd1ac6a 100644
--- a/net/ethtool/rings.c
+++ b/net/ethtool/rings.c
@@ -39,6 +39,10 @@ static int rings_prepare_data(const struct ethnl_req_info *req_base,
ret = ethnl_ops_begin(dev);
if (ret < 0)
return ret;
+
+ data->kernel_ringparam.tcp_data_split = dev->cfg->hds_config;
+ data->kernel_ringparam.hds_thresh = dev->cfg->hds_thresh;
+
dev->ethtool_ops->get_ringparam(dev, &data->ringparam,
&data->kernel_ringparam, info->extack);
ethnl_ops_complete(dev);