Skip to contentSkip to conversation

bpf: fix bpf_skc_lookup comment wrt. return type

PATCH Applied Tobias Klauser 2 participants 2 messages Jun 17, 2022

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bpf: fix bpf_skc_lookup comment wrt. return type

The function no longer returns 'unsigned long' as of commit edbf8c01de5a ("bpf: add skc_lookup_tcp helper").

---
 net/core/filter.c | 2 --
 1 file changed, 2 deletions(-)
net/core/filter.c +0 -2
index 5af58eb48587..89cb007b6a09 100644
@@ -6463,8 +6463,6 @@ static struct sock *sk_lookup(struct net *net, struct bpf_sock_tuple *tuple,
 
 /* bpf_skc_lookup performs the core lookup for different types of sockets,
  * taking a reference on the socket if it doesn't have the flag SOCK_RCU_FREE.
- * Returns the socket as an 'unsigned long' to simplify the casting in the
- * callers to satisfy BPF_CALL declarations.
  */
 static struct sock *
 __bpf_skc_lookup(struct sk_buff *skb, struct bpf_sock_tuple *tuple, u32 len,
Signature · 1 line
2.36.1
#1 lore raw
This patch was applied to bpf/bpf-next.git (master) by Daniel Borkmann <[email protected]>:

Hello:

This patch was applied to bpf/bpf-next.git (master) by Daniel Borkmann <[email protected]>:

Quoted 7 lines · On Fri, 17 Jun 2022 17:21:21 +0200 you wrote:

The function no longer returns 'unsigned long' as of commit edbf8c01de5a ("bpf: add skc_lookup_tcp helper").

---
 net/core/filter.c | 2 --
 1 file changed, 2 deletions(-)

Here is the summary with links:
- bpf: fix bpf_skc_lookup comment wrt. return type

    https://git.kernel.org/bpf/bpf-next/c/f5be22c64bd6

You are awesome, thank you!

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