Page MenuHomeFreeBSD

Correct some sysctls of the sysctl net.inet.tcp.bb family set.
ClosedPublic

Authored by cc on Dec 21 2022, 11:26 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mar 8 2024, 10:37 PM
Unknown Object (File)
Mar 8 2024, 10:37 PM
Unknown Object (File)
Dec 13 2023, 3:50 AM
Unknown Object (File)
Nov 11 2023, 8:24 AM
Unknown Object (File)
Nov 7 2023, 3:10 PM
Unknown Object (File)
Nov 5 2023, 10:04 PM
Unknown Object (File)
Nov 2 2023, 2:02 AM
Unknown Object (File)
Oct 31 2023, 5:26 PM

Details

Summary

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.

Test Plan

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 Not Applicable
Unit
Tests Not Applicable

Event Timeline

cc requested review of this revision.Dec 21 2022, 11:26 PM
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.

cc retitled this revision from Correct two sysctls of the sysctl net.inet.tcp.bb family set. to Correct some sysctls of the sysctl net.inet.tcp.bb family set..Dec 22 2022, 3:43 PM
cc edited the summary of this revision. (Show Details)
cc edited the test plan for this revision. (Show Details)
This revision is now accepted and ready to land.Dec 22 2022, 4:46 PM

Prepare for patch submit.

This revision now requires review to proceed.Dec 22 2022, 8:32 PM

I believe Cheng doesn't have the commit bit; I suggest we start the process of onboarding Cheng as another FBSD committer....

This revision is now accepted and ready to land.Dec 23 2022, 10:18 AM

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?

This revision was automatically updated to reflect the committed changes.