diff options
author | Yaxin Chen <[email protected]> | 2024-08-23 15:48:43 -0700 |
---|---|---|
committer | Daniel Borkmann <[email protected]> | 2024-09-02 18:45:42 +0200 |
commit | 5d1622831064abf2633a1bc9a6446e83a669f58d (patch) | |
tree | 758b526c898fbae3cf596e415f0a7cdc145d410d | |
parent | 731733c6234855b26d468aa2f89a3051c170e63a (diff) |
tcp_bpf: Remove an unused parameter for bpf_tcp_ingress()
Parameter flags is not used in bpf_tcp_ingress().
Signed-off-by: Yaxin Chen <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Reviewed-by: Cong Wang <[email protected]>
Acked-by: Jakub Sitnicki <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
-rw-r--r-- | net/ipv4/tcp_bpf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/tcp_bpf.c b/net/ipv4/tcp_bpf.c index 53b0d62fd2c2..57a1614c55f9 100644 --- a/net/ipv4/tcp_bpf.c +++ b/net/ipv4/tcp_bpf.c @@ -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, - struct sk_msg *msg, u32 apply_bytes, int flags) + struct sk_msg *msg, u32 apply_bytes) { bool apply = apply_bytes; struct scatterlist *sge; @@ -167,7 +167,7 @@ int tcp_bpf_sendmsg_redir(struct sock *sk, bool ingress, if (unlikely(!psock)) 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); sk_psock_put(sk, psock); return ret; |