mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02:00
ethtool: tsconfig: always take rtnl_lock
mlx5 throws ASSERT_RTNL() warnings on timestamp config, because it tries to update features. mlx5e_hwtstamp_set() calls netdev_update_features(). I missed this while grepping the drivers because tsconfig goes through ndo_hwtstamp_set/get, not ethtool ops, even tho the new uAPI is in ethtool Netlink. We could add a dedicated opt out bit for mlx5, but NDOs were not supposed to be part of the ethtool locking conversion in the first place. The mlx5 features update is related to the "compressed CQE" format which lacks timestamp, apparently. See commitc0194e2d0e("net/mlx5e: Disable rxhash when CQE compress is enabled"). Fixes:f9a3e05114("net: ethtool: optionally skip rtnl_lock on Netlink path for SET ops") Acked-by: Stanislav Fomichev <sdf@fomichev.me> Reviewed-by: Jacob Keller <jacob.e.keller@intel.com> Reviewed-by: Vadim Fedorenko <vadim.fedorenko@linux.dev> Reviewed-by: Kory Maincent <kory.maincent@bootlin.com> Link: https://patch.msgid.link/20260611200355.2020663-1-kuba@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
80a7e3507d
commit
f48cd5b47b
|
|
@ -113,6 +113,13 @@ ethtool_nl_msg_needs_rtnl(const struct net_device *dev, u8 cmd)
|
|||
return ops->op_needs_rtnl & ETHTOOL_OP_NEEDS_RTNL_SPAUSEPARAM;
|
||||
case ETHTOOL_MSG_RSS_SET:
|
||||
return ops->op_needs_rtnl & ETHTOOL_OP_NEEDS_RTNL_RSS;
|
||||
case ETHTOOL_MSG_TSCONFIG_GET:
|
||||
case ETHTOOL_MSG_TSCONFIG_SET:
|
||||
/* tsconfig calls ndos (ndo_hwtstamp_set/get), not ethtool ops.
|
||||
* Also, there is no corresponding ethtool ioctl, therefore
|
||||
* these cases are Netlink-only.
|
||||
*/
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user