bpf: Fix bpf_skc_lookup comment wrt. return type
Bugzilla: https://bugzilla.redhat.com/2137876
commit f5be22c64bd6ee6c1cb0b34f4ff748d43879cd4c
Author: Tobias Klauser <tklauser@distanz.ch>
Date: Fri Jun 17 17:21:21 2022 +0200
bpf: Fix bpf_skc_lookup comment wrt. return type
The function no longer returns 'unsigned long' as of commit edbf8c01de
("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
Signed-off-by: Felix Maurer <fmaurer@redhat.com>
This commit is contained in:
parent
583b41b70f
commit
1880f2a617
|
@ -6517,8 +6517,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,
|
||||
|
|
Loading…
Reference in New Issue