Skip to contentSkip to conversation

netkit: Remove double invocation to clear ipvs property flag

PATCH Applied Daniel Borkmann 4 participants 5 messages Feb 25, 2025 – Feb 28, 2025

Subsystems (4)
lore
Share & tools
lore

Daniel Borkmann

author maintainer
#0 lore raw

PATCH 1/1 netkit: Remove double invocation to clear ipvs property flag

With ipvs_reset() now done unconditionally in skb_scrub_packet() we would then call the former twice netkit_prep_forward(). Thus remove the now unnecessary explicit call.

Fixes de2c211868b9 ("ipvs: Always clear ipvs_property flag in skb_scrub_packet()")
Cc Philo Lu <[email protected]>
Cc Nikolay Aleksandrov <[email protected]>
Cc Martin KaFai Lau <[email protected]>

---
[ Sending to net since de2c211868b9 is in net ]

 drivers/net/netkit.c | 1 -
 1 file changed, 1 deletion(-)
drivers/net/netkit.c +0 -1
index 1e1b00756be7..20088f781376 100644
@@ -65,7 +65,6 @@ static void netkit_prep_forward(struct sk_buff *skb,
 	skb_reset_mac_header(skb);
 	if (!xnet)
 		return;
-	ipvs_reset(skb);
 	skb_clear_tstamp(skb);
 	if (xnet_scrub)
 		netkit_xnet(skb);
Signature · 1 line
2.43.0
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 20 lines · Daniel Borkmann

With ipvs_reset() now done unconditionally in skb_scrub_packet() we would then call the former twice netkit_prep_forward(). Thus remove the now unnecessary explicit call.

Fixes de2c211868b9 ("ipvs: Always clear ipvs_property flag in skb_scrub_packet()")
Cc Philo Lu <[email protected]>
Cc Nikolay Aleksandrov <[email protected]>
Cc Martin KaFai Lau <[email protected]>

---
[ Sending to net since de2c211868b9 is in net ]

 drivers/net/netkit.c | 1 -
 1 file changed, 1 deletion(-)
drivers/net/netkit.c +0 -0
index 1e1b00756be7..20088f781376 100644

drivers/net/netkit.c static void netkit_prep_forward(struct sk_buff *skb, · line 70

Quoted 7 lines
drivers/net/netkit.c +0 -1
@@ -65,7 +65,6 @@ static void netkit_prep_forward(struct sk_buff *skb,
 	skb_reset_mac_header(skb);
 	if (!xnet)
 		return;
-	ipvs_reset(skb);
 	skb_clear_tstamp(skb);
 	if (xnet_scrub)
 		netkit_xnet(skb);
maintainer
#2 lore raw
In reply to Daniel Borkmann
Quoted 11 lines · On Tue, 25 Feb 2025 22:29:27 +0100 Daniel Borkmann wrote:

With ipvs_reset() now done unconditionally in skb_scrub_packet() we would then call the former twice netkit_prep_forward(). Thus remove the now unnecessary explicit call.

Fixes de2c211868b9 ("ipvs: Always clear ipvs_property flag in skb_scrub_packet()")
Cc Philo Lu <[email protected]>
Cc Nikolay Aleksandrov <[email protected]>
Cc Martin KaFai Lau <[email protected]>

---
[ Sending to net since de2c211868b9 is in net ]

I see. But if that's okay with you we'll apply it to net-next tomorrow, once the trees converge?

author maintainer
#3 lore raw
Quoted 13 lines · Jakub Kicinski
Quoted 11 lines · On Tue, 25 Feb 2025 22:29:27 +0100 Daniel Borkmann wrote:

With ipvs_reset() now done unconditionally in skb_scrub_packet() we would then call the former twice netkit_prep_forward(). Thus remove the now unnecessary explicit call.

Fixes de2c211868b9 ("ipvs: Always clear ipvs_property flag in skb_scrub_packet()")
Cc Philo Lu <[email protected]>
Cc Nikolay Aleksandrov <[email protected]>
Cc Martin KaFai Lau <[email protected]>

---
[ Sending to net since de2c211868b9 is in net ]

Quoted 2 lines

I see. But if that's okay with you we'll apply it to net-next tomorrow, once the trees converge?

Yes, that's totally fine, too. Thanks!

#4 lore raw
In reply to Daniel Borkmann
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Quoted 11 lines · On Tue, 25 Feb 2025 22:29:27 +0100 you wrote:

With ipvs_reset() now done unconditionally in skb_scrub_packet() we would then call the former twice netkit_prep_forward(). Thus remove the now unnecessary explicit call.

Fixes de2c211868b9 ("ipvs: Always clear ipvs_property flag in skb_scrub_packet()")
Cc Philo Lu <[email protected]>
Cc Nikolay Aleksandrov <[email protected]>
Cc Martin KaFai Lau <[email protected]>

[...]

Here is the summary with links:
- [net] netkit: Remove double invocation to clear ipvs property flag

    https://git.kernel.org/netdev/net-next/c/047e059cf212

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html