diff options
| author | Ruslan Ermilov <ru@nginx.com> | 2021-12-09 15:30:50 +0300 |
|---|---|---|
| committer | Ruslan Ermilov <ru@nginx.com> | 2021-12-09 15:30:50 +0300 |
| commit | 4374cbfb1e8a86bc28b1aba651f84d3ba5b809a6 (patch) | |
| tree | 8689d55d9d6ed7ee4118becc11d556dea3018d04 | |
| parent | d06f60250e0a27b0e849e8da87f21ce3280ec568 (diff) | |
| download | nginx-4374cbfb1e8a86bc28b1aba651f84d3ba5b809a6.tar.gz nginx-4374cbfb1e8a86bc28b1aba651f84d3ba5b809a6.tar.bz2 | |
QUIC: removed configure time test for BPF sockhash.
The test verifies kernel version on a build machine,
but actually used kernel may be different.
| -rw-r--r-- | auto/os/linux | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/auto/os/linux b/auto/os/linux index 8bb25190a..f60809c7a 100644 --- a/auto/os/linux +++ b/auto/os/linux @@ -256,21 +256,8 @@ if [ $ngx_found = yes ]; then CORE_SRCS="$CORE_SRCS src/core/ngx_bpf.c" CORE_DEPS="$CORE_DEPS src/core/ngx_bpf.h" - # quic bpf module uses sockhash to select socket from reuseport group, - # support appeared in Linux 5.7: - # - # commit: 9fed9000c5c6cacfcaaa48aff74818072ae294cc - # bpf: Allow selecting reuseport socket from a SOCKMAP/SOCKHASH - if [ $QUIC_BPF != NONE ]; then - echo $ngx_n "checking for BPF sockhash support in kernel ...$ngx_c" - if [ $version -lt 329472 ]; then - echo " not found (at least 5.7 is required)" - QUIC_BPF=NO - else - echo " found" - QUIC_BPF=YES - fi + QUIC_BPF=YES fi fi |
