comparison auto/os/linux @ 8724:ea78659b70fe quic

QUIC: removed configure time test for BPF sockhash. The test verifies kernel version on a build machine, but actually used kernel may be different.
author Ruslan Ermilov <ru@nginx.com>
date Thu, 09 Dec 2021 15:30:50 +0300
parents 9ec96ceaf484
children ce6d9cf0f567
comparison
equal deleted inserted replaced
8723:9ec96ceaf484 8724:ea78659b70fe
254 254
255 if [ $ngx_found = yes ]; then 255 if [ $ngx_found = yes ]; then
256 CORE_SRCS="$CORE_SRCS src/core/ngx_bpf.c" 256 CORE_SRCS="$CORE_SRCS src/core/ngx_bpf.c"
257 CORE_DEPS="$CORE_DEPS src/core/ngx_bpf.h" 257 CORE_DEPS="$CORE_DEPS src/core/ngx_bpf.h"
258 258
259 # quic bpf module uses sockhash to select socket from reuseport group,
260 # support appeared in Linux 5.7:
261 #
262 # commit: 9fed9000c5c6cacfcaaa48aff74818072ae294cc
263 # bpf: Allow selecting reuseport socket from a SOCKMAP/SOCKHASH
264
265 if [ $QUIC_BPF != NONE ]; then 259 if [ $QUIC_BPF != NONE ]; then
266 echo $ngx_n "checking for BPF sockhash support in kernel ...$ngx_c" 260 QUIC_BPF=YES
267 if [ $version -lt 329472 ]; then
268 echo " not found (at least 5.7 is required)"
269 QUIC_BPF=NO
270 else
271 echo " found"
272 QUIC_BPF=YES
273 fi
274 fi 261 fi
275 fi 262 fi
276 263
277 264
278 ngx_feature="SO_COOKIE" 265 ngx_feature="SO_COOKIE"