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.
Details
- Reviewers
tuexen rscheff - Group Reviewers
transport - Commits
- rGb5ca1cd6abad: BBLog: improve sysctl variables
rG57cc27a3325a: BBLog: improve sysctl variables
Tested the sysctls' output before and after the change.
before:
root@s1:~ # sysctl -d net.inet.tcp.bb.disable_all
net.inet.tcp.bb.disable_all: Disable all BB logging for all connections
root@s1:~ # sysctl net.inet.tcp.bb.disable_all
net.inet.tcp.bb.disable_all: 0
iroot@s1:~ # sysctl -d net.inet.tcp.bb.log_auto_mode
net.inet.tcp.bb.log_auto_mode: Logging mode for auto-selected sessions (default is TCP_LOG_STATE_HEAD_AUTO)
root@s1:~ # sysctl net.inet.tcp.bb.log_auto_mode
net.inet.tcp.bb.log_auto_mode: 1
root@n1:~ # sysctl net.inet.tcp.bb.log_auto_all
net.inet.tcp.bb.log_auto_all: 0
root@n1:~ # sysctl -d net.inet.tcp.bb.log_auto_all
net.inet.tcp.bb.log_auto_all: Auto-select from all sessions (rather than just those with IDs)
after:
root@s1:~ # sysctl -d net.inet.tcp.bb.disable_all
net.inet.tcp.bb.disable_all: Disable all BB logging for all connections
root@s1:~ # sysctl net.inet.tcp.bb.disable_all
net.inet.tcp.bb.disable_all: 0
root@s1:~ # sysctl -d net.inet.tcp.bb.log_auto_mode
net.inet.tcp.bb.log_auto_mode: Logging mode for auto-selected sessions (default is TCP_LOG_STATE_TAIL)
root@s1:~ # sysctl net.inet.tcp.bb.log_auto_mode
net.inet.tcp.bb.log_auto_mode: 1
root@n1:~ # sysctl net.inet.tcp.bb.log_auto_all
net.inet.tcp.bb.log_auto_all: 0
root@n1:~ # sysctl -d net.inet.tcp.bb.log_auto_all
net.inet.tcp.bb.log_auto_all: Auto-select from all sessions (rather than just those with IDs)
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 48795 Build 45684: arc lint + arc unit
Event Timeline
sys/netinet/tcp_log_buf.c | ||
---|---|---|
128 | Possibly replace false by 0 to be consistent with the other declarations, in particular the one for log_verbose? |
Update the sysctl format for tcp_log_auto_all to be consistent with the sysctl for log_verbose.
I believe Cheng doesn't have the commit bit; I suggest we start the process of onboarding Cheng as another FBSD committer....
My mistake. I assumed he has a doc commit bit. Now I see, that he did not use an FreeBSD relates e-mail address.
Do you prefer to commit this patch or should I do this?