Skip to content

Commit 5d16228

Browse files
Yaxin Chenborkmann
Yaxin Chen
authored andcommitted
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
1 parent 731733c commit 5d16228

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

net/ipv4/tcp_bpf.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ void tcp_eat_skb(struct sock *sk, struct sk_buff *skb)
3030
}
3131

3232
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)
3434
{
3535
bool apply = apply_bytes;
3636
struct scatterlist *sge;
@@ -167,7 +167,7 @@ int tcp_bpf_sendmsg_redir(struct sock *sk, bool ingress,
167167
if (unlikely(!psock))
168168
return -EPIPE;
169169

170-
ret = ingress ? bpf_tcp_ingress(sk, psock, msg, bytes, flags) :
170+
ret = ingress ? bpf_tcp_ingress(sk, psock, msg, bytes) :
171171
tcp_bpf_push_locked(sk, msg, bytes, flags, false);
172172
sk_psock_put(sk, psock);
173173
return ret;

0 commit comments

Comments
 (0)