Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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@meta.com>
Reviewed-by: Kory Maincent <kory.maincent@bootlin.com>
Link: https://patch.msgid.link/20250922231924.2769571-1-vadfed@meta.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Vadim Fedorenko and committed by
Jakub Kicinski
e8ab2317 f67e9ae7

+5 -7
+5 -7
net/ethtool/tsconfig.c
··· 423 423 return ret; 424 424 } 425 425 426 - if (hwprov_mod || config_mod) { 427 - ret = tsconfig_send_reply(dev, info); 428 - if (ret && ret != -EOPNOTSUPP) { 429 - NL_SET_ERR_MSG(info->extack, 430 - "error while reading the new configuration set"); 431 - return ret; 432 - } 426 + ret = tsconfig_send_reply(dev, info); 427 + if (ret && ret != -EOPNOTSUPP) { 428 + NL_SET_ERR_MSG(info->extack, 429 + "error while reading the new configuration set"); 430 + return ret; 433 431 } 434 432 435 433 /* tsconfig has no notification */