From: Alexei Starovoitov Date: Wed, 2 Dec 2020 21:25:11 +0000 (-0800) Subject: Merge branch 'bpf: expose bpf_{s,g}etsockopt helpers to bind{4,6} hooks' X-Git-Tag: accepted/tizen/unified/20230118.172025~8321^2~124^2~15 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9e83f54f532bf2e66f6808922a4646cab7123033;p=platform%2Fkernel%2Flinux-rpi.git 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 --- 9e83f54f532bf2e66f6808922a4646cab7123033