]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: quic: remove startup alert if GSO unsupported
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 4 Dec 2024 15:25:53 +0000 (16:25 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 5 Dec 2024 10:30:31 +0000 (11:30 +0100)
This patch is similar to the previous one, but for GSO support. Remove
alert level message to a diag report only visible with argument -dD.

This must be backported up to 3.1.

src/proto_quic.c

index 47be132386b65f98aa0c4c2669d388d2dfde87a5..6b8b552711d4c02123eae2bbca0a37585c1c7e80 100644 (file)
@@ -565,13 +565,13 @@ static int quic_test_socketopts(struct listener *l)
 
 #ifdef UDP_SEGMENT
                if (setsockopt(fdtest, SOL_UDP, UDP_SEGMENT, &zero, sizeof(zero))) {
-                       ha_alert("Your platform does not support UDP GSO. "
-                                "This will be automatically disabled for QUIC transfer.\n");
+                       ha_diag_warning("Your platform does not support UDP GSO. "
+                                       "This will be automatically disabled for QUIC transfer.\n");
                        global.tune.options |= GTUNE_QUIC_NO_UDP_GSO;
                }
 #else
-               ha_alert("Your platform does not support UDP GSO. "
-                        "This will be automatically disabled for QUIC transfer.\n");
+               ha_diag_warning("Your platform does not support UDP GSO. "
+                               "This will be automatically disabled for QUIC transfer.\n");
                global.tune.options |= GTUNE_QUIC_NO_UDP_GSO;
 #endif
        }