* [PATCH net-next] net: ethtool: Monotonically increase the message sequence number
@ 2024-07-11 8:09 Danielle Ratson
2024-07-11 14:09 ` Petr Machata
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Danielle Ratson @ 2024-07-11 8:09 UTC (permalink / raw)
To: netdev
Cc: davem, edumazet, kuba, pabeni, idosch, petrm, ecree.xilinx,
linux-kernel, danieller
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>
---
net/ethtool/module.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
--
2.45.0
^ permalink raw reply related [flat|nested] 5+ messages in thread* Re: [PATCH net-next] net: ethtool: Monotonically increase the message sequence number
2024-07-11 8:09 [PATCH net-next] net: ethtool: Monotonically increase the message sequence number Danielle Ratson
@ 2024-07-11 14:09 ` Petr Machata
2024-07-11 14:23 ` Petr Machata
2024-07-12 0:43 ` Jakub Kicinski
2024-07-13 22:50 ` patchwork-bot+netdevbpf
2 siblings, 1 reply; 5+ messages in thread
From: Petr Machata @ 2024-07-11 14:09 UTC (permalink / raw)
To: Danielle Ratson
Cc: netdev, davem, edumazet, kuba, pabeni, idosch, petrm,
ecree.xilinx, linux-kernel
Danielle Ratson <danieller@nvidia.com> writes:
> 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>
Applied, thanks.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH net-next] net: ethtool: Monotonically increase the message sequence number
2024-07-11 14:09 ` Petr Machata
@ 2024-07-11 14:23 ` Petr Machata
0 siblings, 0 replies; 5+ messages in thread
From: Petr Machata @ 2024-07-11 14:23 UTC (permalink / raw)
To: Petr Machata
Cc: Danielle Ratson, netdev, davem, edumazet, kuba, pabeni, idosch,
ecree.xilinx, linux-kernel
Petr Machata <petrm@nvidia.com> writes:
> Danielle Ratson <danieller@nvidia.com> writes:
>
>> 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>
>
> Applied, thanks.
Oops, never mind, I was talking about our internal queue and the reply
shouldn't have gone public.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH net-next] net: ethtool: Monotonically increase the message sequence number
2024-07-11 8:09 [PATCH net-next] net: ethtool: Monotonically increase the message sequence number Danielle Ratson
2024-07-11 14:09 ` Petr Machata
@ 2024-07-12 0:43 ` Jakub Kicinski
2024-07-13 22:50 ` patchwork-bot+netdevbpf
2 siblings, 0 replies; 5+ messages in thread
From: Jakub Kicinski @ 2024-07-12 0:43 UTC (permalink / raw)
To: Danielle Ratson
Cc: netdev, davem, edumazet, pabeni, idosch, petrm, ecree.xilinx,
linux-kernel
On Thu, 11 Jul 2024 11:09:34 +0300 Danielle Ratson wrote:
> 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.
Reviewed-by: Jakub Kicinski <kuba@kernel.org>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH net-next] net: ethtool: Monotonically increase the message sequence number
2024-07-11 8:09 [PATCH net-next] net: ethtool: Monotonically increase the message sequence number Danielle Ratson
2024-07-11 14:09 ` Petr Machata
2024-07-12 0:43 ` Jakub Kicinski
@ 2024-07-13 22:50 ` patchwork-bot+netdevbpf
2 siblings, 0 replies; 5+ messages in thread
From: patchwork-bot+netdevbpf @ 2024-07-13 22:50 UTC (permalink / raw)
To: Danielle Ratson
Cc: netdev, davem, edumazet, kuba, pabeni, idosch, petrm,
ecree.xilinx, linux-kernel
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Thu, 11 Jul 2024 11:09:34 +0300 you wrote:
> 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.
>
> [...]
Here is the summary with links:
- [net-next] net: ethtool: Monotonically increase the message sequence number
https://git.kernel.org/netdev/net-next/c/275a63c9fe10
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-07-13 22:50 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-11 8:09 [PATCH net-next] net: ethtool: Monotonically increase the message sequence number Danielle Ratson
2024-07-11 14:09 ` Petr Machata
2024-07-11 14:23 ` Petr Machata
2024-07-12 0:43 ` Jakub Kicinski
2024-07-13 22:50 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).