]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'bpf: expose bpf_{s,g}etsockopt helpers to bind{4,6} hooks'
authorAlexei Starovoitov <ast@kernel.org>
Wed, 2 Dec 2020 21:25:11 +0000 (13:25 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 2 Dec 2020 21:25:25 +0000 (13:25 -0800)
commit298eb304812aab387c2e55d8e001a6e02e5e0859
tree735cc1abe156fcd9e5c9edb3cf4b62ffd873ba31
parente1fc8c16c7d6dedb555008e84fc4236d9e51c4b4
parent2eb7ae384c77f20bfa61306995db2a402048f6fb
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: Alexei Starovoitov <ast@kernel.org>