Skip to content
Commit 9e83f54f authored by Alexei Starovoitov's avatar Alexei Starovoitov
Browse files

Merge branch 'bpf: expose bpf_{s,g}etsockopt helpers to bind{4,6} hooks'



Stanislav Fomichev says:

====================

This might be useful for the listener sockets to pre-populate
some options. Since those helpers require locked sockets,
I'm changing bind hooks to lock/unlock the sockets. This
should not cause any performance overhead because at this
point there shouldn't be any socket lock contention and the
locking/unlocking should be cheap.

Also, as part of the series, I convert test_sock_addr bpf
assembly into C (and preserve the narrow load tests) to
make it easier to extend with th bpf_setsockopt later on.

v2:
* remove version from bpf programs (Andrii Nakryiko)
====================

Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
parents ba058174 a540c81a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment