mirror of
https://github.com/nginx/nginx.git
synced 2024-11-27 15:39:01 +08:00
QUIC: removed configure time test for BPF sockhash.
The test verifies kernel version on a build machine, but actually used kernel may be different.
This commit is contained in:
parent
d06f60250e
commit
4374cbfb1e
@ -256,21 +256,8 @@ if [ $ngx_found = yes ]; then
|
|||||||
CORE_SRCS="$CORE_SRCS src/core/ngx_bpf.c"
|
CORE_SRCS="$CORE_SRCS src/core/ngx_bpf.c"
|
||||||
CORE_DEPS="$CORE_DEPS src/core/ngx_bpf.h"
|
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
|
if [ $QUIC_BPF != NONE ]; then
|
||||||
echo $ngx_n "checking for BPF sockhash support in kernel ...$ngx_c"
|
QUIC_BPF=YES
|
||||||
if [ $version -lt 329472 ]; then
|
|
||||||
echo " not found (at least 5.7 is required)"
|
|
||||||
QUIC_BPF=NO
|
|
||||||
else
|
|
||||||
echo " found"
|
|
||||||
QUIC_BPF=YES
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user