1

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
This commit is contained in:
Yaxin Chen 2024-08-23 15:48:43 -07:00 committed by Daniel Borkmann
parent 731733c623
commit 5d16228310

View File

@ -30,7 +30,7 @@ void tcp_eat_skb(struct sock *sk, struct sk_buff *skb)
} }
static int bpf_tcp_ingress(struct sock *sk, struct sk_psock *psock, static int bpf_tcp_ingress(struct sock *sk, struct sk_psock *psock,
struct sk_msg *msg, u32 apply_bytes, int flags) struct sk_msg *msg, u32 apply_bytes)
{ {
bool apply = apply_bytes; bool apply = apply_bytes;
struct scatterlist *sge; struct scatterlist *sge;
@ -167,7 +167,7 @@ int tcp_bpf_sendmsg_redir(struct sock *sk, bool ingress,
if (unlikely(!psock)) if (unlikely(!psock))
return -EPIPE; return -EPIPE;
ret = ingress ? bpf_tcp_ingress(sk, psock, msg, bytes, flags) : ret = ingress ? bpf_tcp_ingress(sk, psock, msg, bytes) :
tcp_bpf_push_locked(sk, msg, bytes, flags, false); tcp_bpf_push_locked(sk, msg, bytes, flags, false);
sk_psock_put(sk, psock); sk_psock_put(sk, psock);
return ret; return ret;