diff options
author | Danielle Ratson <[email protected]> | 2024-07-11 11:09:34 +0300 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2024-07-13 15:37:36 -0700 |
commit | 275a63c9fe10f39066782d2d775d7d3efb20b01f (patch) | |
tree | afd91d86955ef11b399687ebba7e69be0401c2ae | |
parent | 646d2ac752db921bb97349fa1037a5b862cf87c4 (diff) |
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: Danielle Ratson <[email protected]>
Reviewed-by: Ido Schimmel <[email protected]>
Reviewed-by: Jakub Kicinski <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
-rw-r--r-- | net/ethtool/module.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ethtool/module.c b/net/ethtool/module.c index aba78436d350..6988e07bdcd6 100644 --- a/net/ethtool/module.c +++ b/net/ethtool/module.c @@ -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; |