bpf: Support passing args to sock_ops bpf function
authorLawrence Brakmo <brakmo@fb.com>
Fri, 26 Jan 2018 00:14:09 +0000 (16:14 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 26 Jan 2018 00:41:14 +0000 (16:41 -0800)
commitde525be2ca2734865d29c4b67ddd29913b214906
tree85e7a4d4b7c45de053c1d9528c1849d65252edfa
parentb73042b8a28e2603ac178295ab96c876ba5a97a1
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>
include/linux/filter.h
include/net/tcp.h
include/uapi/linux/bpf.h
net/ipv4/tcp.c
net/ipv4/tcp_nv.c
net/ipv4/tcp_output.c