changeset 8935: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 86f5a738ac2a
files auto/os/linux
diffstat 1 files changed, 1 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- 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