net: ethtool: tsconfig: set command must provide a reply
Subsystems (3)
PATCH 1/1 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.
--- net/ethtool/tsconfig.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-)
net/ethtool/tsconfig.c +5 -7
@@ -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 */
Signature · 1 line
2.47.3
Quoted 6 lines · On Mon, 22 Sep 2025 16:19:24 -0700 Vadim Fedorenko <[email protected]> wrote:
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 toget/set hwtstamp config") Signed-off-by: Vadim Fedorenko <[email protected]>
You sent it 5min before my reviewed-by. So here it is again:
Thank you!
Signature · 3 lines
Köry Maincent, Bootlin Embedded Linux and kernel engineering https://bootlin.com
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Quoted 8 lines · On Mon, 22 Sep 2025 16:19:24 -0700 you wrote:
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 <[email protected]>[...]
Here is the summary with links:
- [net] net: ethtool: tsconfig: set command must provide a reply
https://git.kernel.org/netdev/net-next/c/e8ab231782e9
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html