]> 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)
commitccf2087ebfb0c9095729ea9a5db5aa854c4e75d8
tree85e7a4d4b7c45de053c1d9528c1849d65252edfa
parentd23cbc499ab74086b26c6c07d7e3d8eb2db1ffc3
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