Skip to contentSkip to conversation

udp_bpf: remove some pointless comments

PATCH Applied Cong Wang 3 participants 3 messages Apr 3, 2021 – Apr 6, 2021

Subsystems (4)
lore
Share & tools
lore

Cong Wang

author
#0 lore raw

PATCH 1/1 udp_bpf: remove some pointless comments

From: Cong Wang <[email protected]>

These comments in udp_bpf_update_proto() are copied from the original TCP code and apparently do not apply to UDP. Just remove them.

Cc John Fastabend <[email protected]>
Cc Daniel Borkmann <[email protected]>
Cc Lorenz Bauer <[email protected]>
---
 net/ipv4/udp_bpf.c | 2 --
 1 file changed, 2 deletions(-)
net/ipv4/udp_bpf.c +0 -2
index 7d5c4ebf42fe..4a7e38c5d842 100644
@@ -110,7 +110,6 @@ int udp_bpf_update_proto(struct sock *sk, bool restore)
 
 	if (restore) {
 		sk->sk_write_space = psock->saved_write_space;
-		/* Pairs with lockless read in sk_clone_lock() */
 		WRITE_ONCE(sk->sk_prot, psock->sk_proto);
 		return 0;
 	}
@@ -118,7 +117,6 @@ int udp_bpf_update_proto(struct sock *sk, bool restore)
 	if (sk->sk_family == AF_INET6)
 		udp_bpf_check_v6_needs_rebuild(psock->sk_proto);
 
-	/* Pairs with lockless read in sk_clone_lock() */
 	WRITE_ONCE(sk->sk_prot, &udp_bpf_prots[family]);
 	return 0;
 }
Signature · 1 line
2.25.1
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 6 lines · Cong Wang

From: Cong Wang <[email protected]>

These comments in udp_bpf_update_proto() are copied from the original TCP code and apparently do not apply to UDP. Just remove them.

Quoted 6 lines
Cc John Fastabend <[email protected]>
Cc Daniel Borkmann <[email protected]>
Cc Lorenz Bauer <[email protected]>

---

#2 lore raw
In reply to Cong Wang
This patch was applied to bpf/bpf-next.git (refs/heads/master):

Hello:

This patch was applied to bpf/bpf-next.git (refs/heads/master):

Quoted 6 lines · On Fri, 2 Apr 2021 22:27:15 -0700 you wrote:

From: Cong Wang <[email protected]>

These comments in udp_bpf_update_proto() are copied from the original TCP code and apparently do not apply to UDP. Just remove them.

Quoted 7 lines
Cc John Fastabend <[email protected]>
Cc Daniel Borkmann <[email protected]>
Cc Lorenz Bauer <[email protected]>

[...]

Here is the summary with links:
- [bpf-next] udp_bpf: remove some pointless comments

    https://git.kernel.org/bpf/bpf-next/c/928dc406802d

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html