From 3bce7fa117ffd31edadd5564523e0670a10bc680 Mon Sep 17 00:00:00 2001 From: Evan Forbes <42654277+evan-forbes@users.noreply.github.com> Date: Tue, 29 Oct 2024 12:05:20 -0500 Subject: [PATCH] fix: make check-bbr (#4004) ## Overview very minor fix that fixes the `check-bbr` command (cherry picked from commit c410d8801ac1f8e01cd5a3498e02398ebebb0748) # Conflicts: # Makefile --- Makefile | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Makefile b/Makefile index 8b5c5196ef..dba406427c 100644 --- a/Makefile +++ b/Makefile @@ -225,6 +225,19 @@ prebuilt-binary: release --clean .PHONY: prebuilt-binary +<<<<<<< HEAD +======= +## check-bbr: Check if your system uses BBR congestion control algorithm. Only works on Linux. +check-bbr: + @echo "Checking if BBR is enabled..." + @if [ "$$(sysctl net.ipv4.tcp_congestion_control | awk '{print $$3}')" != "bbr" ]; then \ + echo "WARNING: BBR is not enabled. Please enable BBR for optimal performance. Call make enable-bbr or see Usage section in the README."; \ + else \ + echo "BBR is enabled."; \ + fi +.PHONY: check-bbr + +>>>>>>> c410d880 (fix: make check-bbr (#4004)) ## enable-bbr: Enable BBR congestion control algorithm. Only works on Linux. enable-bbr: @echo "Configuring system to use BBR..."