diff options
author | Lawrence Brakmo <brakmo@fb.com> | 2018-01-25 16:14:09 -0800 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2018-01-25 16:41:14 -0800 |
commit | de525be2ca2734865d29c4b67ddd29913b214906 (patch) | |
tree | 85e7a4d4b7c45de053c1d9528c1849d65252edfa /include/linux/filter.h | |
parent | b73042b8a28e2603ac178295ab96c876ba5a97a1 (diff) | |
download | lwn-de525be2ca2734865d29c4b67ddd29913b214906.tar.gz lwn-de525be2ca2734865d29c4b67ddd29913b214906.zip |
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 'include/linux/filter.h')
-rw-r--r-- | include/linux/filter.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/filter.h b/include/linux/filter.h index daa5a676335f..20384c4bed25 100644 --- a/include/linux/filter.h +++ b/include/linux/filter.h @@ -1003,6 +1003,7 @@ struct bpf_sock_ops_kern { struct sock *sk; u32 op; union { + u32 args[4]; u32 reply; u32 replylong[4]; }; |