projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc368e1
)
bpf: Fix bpf_skc_lookup comment wrt. return type
author
Tobias Klauser
<tklauser@distanz.ch>
Fri, 17 Jun 2022 15:21:21 +0000
(17:21 +0200)
committer
Daniel Borkmann
<daniel@iogearbox.net>
Fri, 17 Jun 2022 16:36:45 +0000
(18:36 +0200)
The function no longer returns 'unsigned long' as of commit
edbf8c01de5a
("bpf: add skc_lookup_tcp helper").
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link:
https://lore.kernel.org/bpf/20220617152121.29617-1-tklauser@distanz.ch
net/core/filter.c
patch
|
blob
|
history
diff --git
a/net/core/filter.c
b/net/core/filter.c
index 423f47db84c60c9e850b3e6c155c43aa4bc5d152..151aa4756bd6f2a141659f84c43e0130fec1fe44 100644
(file)
--- a/
net/core/filter.c
+++ b/
net/core/filter.c
@@
-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,