* [PATCH RESEND net-next v2] net: renesas: rswitch: simplify rswitch_stop()
@ 2025-09-16 16:35 Yury Norov (NVIDIA)
2025-09-17 15:57 ` Simon Horman
2025-09-18 8:50 ` patchwork-bot+netdevbpf
0 siblings, 2 replies; 3+ messages in thread
From: Yury Norov (NVIDIA) @ 2025-09-16 16:35 UTC (permalink / raw)
To: Yoshihiro Shimoda, Andrew Lunn, David S. Miller, Eric Dumazet,
Jakub Kicinski, Paolo Abeni, Nikita Yushchenko,
Michal Swiatkowski, Geert Uytterhoeven, Uwe Kleine-König,
Yury Norov (NVIDIA), Simon Horman
Cc: netdev, linux-renesas-soc, linux-kernel
rswitch_stop() opencodes for_each_set_bit().
CC: Simon Horman <horms@kernel.org>
Reviewed-by: Nikita Yushchenko <nikita.yoush@cogentembedded.com>
Signed-off-by: Yury Norov (NVIDIA) <yury.norov@gmail.com>
---
v1: https://lore.kernel.org/all/20250913181345.204344-1-yury.norov@gmail.com/
v2: Rebase on top of net-next/main
drivers/net/ethernet/renesas/rswitch_main.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/net/ethernet/renesas/rswitch_main.c b/drivers/net/ethernet/renesas/rswitch_main.c
index ff5f966c98a9..69676db20fec 100644
--- a/drivers/net/ethernet/renesas/rswitch_main.c
+++ b/drivers/net/ethernet/renesas/rswitch_main.c
@@ -1656,9 +1656,7 @@ static int rswitch_stop(struct net_device *ndev)
if (bitmap_empty(rdev->priv->opened_ports, RSWITCH_NUM_PORTS))
iowrite32(GWCA_TS_IRQ_BIT, rdev->priv->addr + GWTSDID);
- for (tag = find_first_bit(rdev->ts_skb_used, TS_TAGS_PER_PORT);
- tag < TS_TAGS_PER_PORT;
- tag = find_next_bit(rdev->ts_skb_used, TS_TAGS_PER_PORT, tag + 1)) {
+ for_each_set_bit(tag, rdev->ts_skb_used, TS_TAGS_PER_PORT) {
ts_skb = xchg(&rdev->ts_skb[tag], NULL);
clear_bit(tag, rdev->ts_skb_used);
if (ts_skb)
--
2.43.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH RESEND net-next v2] net: renesas: rswitch: simplify rswitch_stop()
2025-09-16 16:35 [PATCH RESEND net-next v2] net: renesas: rswitch: simplify rswitch_stop() Yury Norov (NVIDIA)
@ 2025-09-17 15:57 ` Simon Horman
2025-09-18 8:50 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: Simon Horman @ 2025-09-17 15:57 UTC (permalink / raw)
To: Yury Norov (NVIDIA)
Cc: Yoshihiro Shimoda, Andrew Lunn, David S. Miller, Eric Dumazet,
Jakub Kicinski, Paolo Abeni, Nikita Yushchenko,
Michal Swiatkowski, Geert Uytterhoeven, Uwe Kleine-König,
netdev, linux-renesas-soc, linux-kernel
On Tue, Sep 16, 2025 at 12:35:16PM -0400, Yury Norov (NVIDIA) wrote:
> rswitch_stop() opencodes for_each_set_bit().
>
> CC: Simon Horman <horms@kernel.org>
> Reviewed-by: Nikita Yushchenko <nikita.yoush@cogentembedded.com>
> Signed-off-by: Yury Norov (NVIDIA) <yury.norov@gmail.com>
> ---
> v1: https://lore.kernel.org/all/20250913181345.204344-1-yury.norov@gmail.com/
> v2: Rebase on top of net-next/main
Thanks for the updates.
Reviewed-by: Simon Horman <horms@kernel.org>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH RESEND net-next v2] net: renesas: rswitch: simplify rswitch_stop()
2025-09-16 16:35 [PATCH RESEND net-next v2] net: renesas: rswitch: simplify rswitch_stop() Yury Norov (NVIDIA)
2025-09-17 15:57 ` Simon Horman
@ 2025-09-18 8:50 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2025-09-18 8:50 UTC (permalink / raw)
To: Yury Norov
Cc: yoshihiro.shimoda.uh, andrew+netdev, davem, edumazet, kuba,
pabeni, nikita.yoush, michal.swiatkowski, geert+renesas,
u.kleine-koenig, horms, netdev, linux-renesas-soc, linux-kernel
Hello:
This patch was applied to netdev/net-next.git (main)
by Paolo Abeni <pabeni@redhat.com>:
On Tue, 16 Sep 2025 12:35:16 -0400 you wrote:
> rswitch_stop() opencodes for_each_set_bit().
>
> CC: Simon Horman <horms@kernel.org>
> Reviewed-by: Nikita Yushchenko <nikita.yoush@cogentembedded.com>
> Signed-off-by: Yury Norov (NVIDIA) <yury.norov@gmail.com>
> ---
> v1: https://lore.kernel.org/all/20250913181345.204344-1-yury.norov@gmail.com/
> v2: Rebase on top of net-next/main
>
> [...]
Here is the summary with links:
- [RESEND,net-next,v2] net: renesas: rswitch: simplify rswitch_stop()
https://git.kernel.org/netdev/net-next/c/18cfe3c1a121
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] 3+ messages in thread
end of thread, other threads:[~2025-09-18 8:50 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-16 16:35 [PATCH RESEND net-next v2] net: renesas: rswitch: simplify rswitch_stop() Yury Norov (NVIDIA)
2025-09-17 15:57 ` Simon Horman
2025-09-18 8: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).