Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

tcp_bpf: Remove an unused parameter for bpf_tcp_ingress()

Parameter flags is not used in bpf_tcp_ingress().

Signed-off-by: Yaxin Chen <yaxin.chen1@bytedance.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Reviewed-by: Cong Wang <cong.wang@bytedance.com>
Acked-by: Jakub Sitnicki <jakub@cloudflare.com>
Link: https://lore.kernel.org/bpf/20240823224843.1985277-1-yaxin.chen1@bytedance.com

authored by

Yaxin Chen and committed by
Daniel Borkmann
5d162283 731733c6

+2 -2
+2 -2
net/ipv4/tcp_bpf.c
··· 30 30 } 31 31 32 32 static int bpf_tcp_ingress(struct sock *sk, struct sk_psock *psock, 33 - struct sk_msg *msg, u32 apply_bytes, int flags) 33 + struct sk_msg *msg, u32 apply_bytes) 34 34 { 35 35 bool apply = apply_bytes; 36 36 struct scatterlist *sge; ··· 167 167 if (unlikely(!psock)) 168 168 return -EPIPE; 169 169 170 - ret = ingress ? bpf_tcp_ingress(sk, psock, msg, bytes, flags) : 170 + ret = ingress ? bpf_tcp_ingress(sk, psock, msg, bytes) : 171 171 tcp_bpf_push_locked(sk, msg, bytes, flags, false); 172 172 sk_psock_put(sk, psock); 173 173 return ret;