]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9754e35a0539227249330c8a9c75fec91ed6f47e
tree85e7a4d4b7c45de053c1d9528c1849d65252edfa
parente41673a291fb23066d9d9a5e8f80bae6b28eb3d4
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