git: b5ca1cd6abad - stable/13 - BBLog: improve sysctl variables

From: Michael Tuexen <tuexen_at_FreeBSD.org>
Date: Thu, 02 Feb 2023 00:05:14 UTC
The branch stable/13 has been updated by tuexen:

URL: https://cgit.FreeBSD.org/src/commit/?id=b5ca1cd6abad63f25b20b1081dd14069d3f7d883

commit b5ca1cd6abad63f25b20b1081dd14069d3f7d883
Author:     Cheng Cui <Cheng.Cui@netapp.com>
AuthorDate: 2022-12-24 21:10:31 +0000
Commit:     Michael Tuexen <tuexen@FreeBSD.org>
CommitDate: 2023-02-02 00:04:30 +0000

    BBLog: improve sysctl variables
    
    Correct the format in sysctl net.inet.tcp.bb.disable_all and
    sysctl net.inet.tcp.bb.log_auto_all.
    Correct the format and the description in
    net.inet.tcp.bb.log_auto_mode.
    
    Reviewed by:            rscheff, tuexen
    Sponsored by:           NetApp, Inc.
    Differential Revision:  https://reviews.freebsd.org/D37776
    
    (cherry picked from commit 57cc27a3325af74553e852851d5e84e308ae79f4)
---
 sys/netinet/tcp_log_buf.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/sys/netinet/tcp_log_buf.c b/sys/netinet/tcp_log_buf.c
index 296f2dce2c0f..c2c84efb7d58 100644
--- a/sys/netinet/tcp_log_buf.c
+++ b/sys/netinet/tcp_log_buf.c
@@ -114,18 +114,18 @@ SYSCTL_U32(_net_inet_tcp_bb, OID_AUTO, log_version, CTLFLAG_RD, &tcp_log_version
     0, "Version of log formats exported");
 
 SYSCTL_U32(_net_inet_tcp_bb, OID_AUTO, disable_all, CTLFLAG_RW,
-    &tcp_disable_all_bb_logs, TCP_LOG_STATE_HEAD_AUTO,
+    &tcp_disable_all_bb_logs, 0,
     "Disable all BB logging for all connections");
 
 SYSCTL_ULONG(_net_inet_tcp_bb, OID_AUTO, log_auto_ratio, CTLFLAG_RW,
     &tcp_log_auto_ratio, 0, "Do auto capturing for 1 out of N sessions");
 
 SYSCTL_U32(_net_inet_tcp_bb, OID_AUTO, log_auto_mode, CTLFLAG_RW,
-    &tcp_log_auto_mode, TCP_LOG_STATE_HEAD_AUTO,
-    "Logging mode for auto-selected sessions (default is TCP_LOG_STATE_HEAD_AUTO)");
+    &tcp_log_auto_mode, 0,
+    "Logging mode for auto-selected sessions (default is TCP_LOG_STATE_TAIL)");
 
 SYSCTL_BOOL(_net_inet_tcp_bb, OID_AUTO, log_auto_all, CTLFLAG_RW,
-    &tcp_log_auto_all, false,
+    &tcp_log_auto_all, 0,
     "Auto-select from all sessions (rather than just those with IDs)");
 
 #ifdef TCPLOG_DEBUG_COUNTERS