[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250922231924.2769571-1-vadfed@meta.com>
Date: Mon, 22 Sep 2025 16:19:24 -0700
From: Vadim Fedorenko <vadfed@...a.com>
To: Andrew Lunn <andrew@...n.ch>, "David S. Miller" <davem@...emloft.net>,
Kory Maincent <kory.maincent@...tlin.com>,
Vadim Fedorenko
<vadim.fedorenko@...ux.dev>,
Jakub Kicinski <kuba@...nel.org>
CC: Simon Horman <horms@...nel.org>, Paolo Abeni <pabeni@...hat.com>,
Eric
Dumazet <edumazet@...gle.com>,
Richard Cochran <richardcochran@...il.com>, <netdev@...r.kernel.org>
Subject: [PATCH net] net: ethtool: tsconfig: set command must provide a reply
Timestamping configuration through ethtool has inconsistent behavior of
skipping the reply for set command if configuration was not changed. Fix
it be providing reply in any case.
Fixes: 6e9e2eed4f39d ("net: ethtool: Add support for tsconfig command to get/set hwtstamp config")
Signed-off-by: Vadim Fedorenko <vadfed@...a.com>
---
net/ethtool/tsconfig.c | 12 +++++-------
1 file changed, 5 insertions(+), 7 deletions(-)
diff --git a/net/ethtool/tsconfig.c b/net/ethtool/tsconfig.c
index 2be356bdfe873..169b413b31fc5 100644
--- a/net/ethtool/tsconfig.c
+++ b/net/ethtool/tsconfig.c
@@ -423,13 +423,11 @@ static int ethnl_set_tsconfig(struct ethnl_req_info *req_base,
return ret;
}
- if (hwprov_mod || config_mod) {
- ret = tsconfig_send_reply(dev, info);
- if (ret && ret != -EOPNOTSUPP) {
- NL_SET_ERR_MSG(info->extack,
- "error while reading the new configuration set");
- return ret;
- }
+ ret = tsconfig_send_reply(dev, info);
+ if (ret && ret != -EOPNOTSUPP) {
+ NL_SET_ERR_MSG(info->extack,
+ "error while reading the new configuration set");
+ return ret;
}
/* tsconfig has no notification */
--
2.47.3
Powered by blists - more mailing lists