Commit 275a63c9 authored by Danielle Ratson's avatar Danielle Ratson Committed by Jakub Kicinski

net: ethtool: Monotonically increase the message sequence number

Currently, during the module firmware flashing process, unicast
notifications are sent from the kernel using the same sequence number,
making it impossible for user space to track missed notifications.

Monotonically increase the message sequence number, so the order of
notifications could be tracked effectively.
Signed-off-by: default avatarDanielle Ratson <danieller@nvidia.com>
Reviewed-by: default avatarIdo Schimmel <idosch@nvidia.com>
Reviewed-by: default avatarJakub Kicinski <kuba@kernel.org>
Link: https://patch.msgid.link/20240711080934.2071869-1-danieller@nvidia.comSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 646d2ac7
......@@ -488,7 +488,7 @@ ethnl_module_fw_flash_ntf(struct net_device *dev,
if (!skb)
return;
hdr = ethnl_unicast_put(skb, ntf_params->portid, ntf_params->seq,
hdr = ethnl_unicast_put(skb, ntf_params->portid, ++ntf_params->seq,
ETHTOOL_MSG_MODULE_FW_FLASH_NTF);
if (!hdr)
goto err_skb;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment