Page MenuHomeFreeBSD

tcp: retire sysctl variable functions_inherit_listen_socket_stack
ClosedPublic

Authored by tuexen on Jul 25 2024, 10:35 PM.
Tags
None
Referenced Files
F102641138: D46141.diff
Fri, Nov 15, 5:32 AM
F102586862: D46141.diff
Thu, Nov 14, 10:40 AM
Unknown Object (File)
Wed, Nov 13, 8:07 PM
Unknown Object (File)
Fri, Nov 8, 3:01 AM
Unknown Object (File)
Thu, Nov 7, 5:17 PM
Unknown Object (File)
Wed, Nov 6, 7:49 PM
Unknown Object (File)
Tue, Nov 5, 12:22 PM
Unknown Object (File)
Tue, Oct 22, 10:58 AM

Details

Summary

The default was true and it is consistent to inherit the TCP function block from the listener as most of the other parameters.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

This change seems to revert the commit 6134aabe38c8. Is there any behavior change on V_functions_inherit_listen_socket_stack == 0 after this change? Is the TCP function block from the listener changed dynamically once the default stack is changed?

In D46141#1052082, @cc wrote:

This change seems to revert the commit 6134aabe38c8. Is there any behavior change on V_functions_inherit_listen_socket_stack == 0 after this change? Is the TCP function block from the listener changed dynamically once the default stack is changed?

Changing the default does not change the listener. You always inherit from the listener. So for V_functions_inherit_listen_socket_stack == 0, there is a change.

LGTM.
I think for those who want newly accepted connections to use a "new" default stack, there is a mechanism using tcpsso that could be used to (attempt to) change the listening socket's stack so that new connections use that stack. This would need to be run for all desired listening sockets though.

LGTM.
I think for those who want newly accepted connections to use a "new" default stack, there is a mechanism using tcpsso that could be used to (attempt to) change the listening socket's stack so that new connections use that stack. This would need to be run for all desired listening sockets though.

Thanks for that TCPSSO(8) info as a workaround, then, I am good with this change.

This revision is now accepted and ready to land.Jul 29 2024, 2:12 PM
In D46141#1052477, @cc wrote:

LGTM.
I think for those who want newly accepted connections to use a "new" default stack, there is a mechanism using tcpsso that could be used to (attempt to) change the listening socket's stack so that new connections use that stack. This would need to be run for all desired listening sockets though.

Thanks for that TCPSSO(8) info as a workaround, then, I am good with this change.

I added an example to the tcpsso man-page, which describes how to switch the stack of all listening sockets in 2edac5a60a57.