diff options
author | Lawrence Brakmo <brakmo@fb.com> | 2018-01-25 19:14:09 -0500 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2018-01-25 19:41:14 -0500 |
commit | de525be2ca2734865d29c4b67ddd29913b214906 (patch) | |
tree | 85e7a4d4b7c45de053c1d9528c1849d65252edfa /net/ipv4/tcp_output.c | |
parent | b73042b8a28e2603ac178295ab96c876ba5a97a1 (diff) |
bpf: Support passing args to sock_ops bpf function
Adds support for passing up to 4 arguments to sock_ops bpf functions. It
reusues the reply union, so the bpf_sock_ops structures are not
increased in size.
Signed-off-by: Lawrence Brakmo <brakmo@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'net/ipv4/tcp_output.c')
-rw-r--r-- | net/ipv4/tcp_output.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c index 95461f02ac9a..d12f7f71c1c4 100644 --- a/net/ipv4/tcp_output.c +++ b/net/ipv4/tcp_output.c | |||
@@ -3469,7 +3469,7 @@ int tcp_connect(struct sock *sk) | |||
3469 | struct sk_buff *buff; | 3469 | struct sk_buff *buff; |
3470 | int err; | 3470 | int err; |
3471 | 3471 | ||
3472 | tcp_call_bpf(sk, BPF_SOCK_OPS_TCP_CONNECT_CB); | 3472 | tcp_call_bpf(sk, BPF_SOCK_OPS_TCP_CONNECT_CB, 0, NULL); |
3473 | 3473 | ||
3474 | if (inet_csk(sk)->icsk_af_ops->rebuild_header(sk)) | 3474 | if (inet_csk(sk)->icsk_af_ops->rebuild_header(sk)) |
3475 | return -EHOSTUNREACH; /* Routing failure or similar. */ | 3475 | return -EHOSTUNREACH; /* Routing failure or similar. */ |