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: 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 <danieller@nvidia.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Jakub Kicinski <kuba@kernel.org>
Link: https://patch.msgid.link/20240711080934.2071869-1-danieller@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Danielle Ratson and committed by
Jakub Kicinski
275a63c9 646d2ac7

+1 -1
+1 -1
net/ethtool/module.c
··· 488 488 if (!skb) 489 489 return; 490 490 491 - hdr = ethnl_unicast_put(skb, ntf_params->portid, ntf_params->seq, 491 + hdr = ethnl_unicast_put(skb, ntf_params->portid, ++ntf_params->seq, 492 492 ETHTOOL_MSG_MODULE_FW_FLASH_NTF); 493 493 if (!hdr) 494 494 goto err_skb;