Skip to contentSkip to conversation

smc-sysctl formatting and missing entries

PATCH Applied [email protected] 3 participants 5 messages Mar 9 – Mar 11

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

v2 cover smc-sysctl formatting and missing entries

From: Kyoji Ogasawara <[email protected]>

Hi,

this series updates SMC sysctl documentation in two small steps.

- patch 1 fixes indentation in the smcr_buf_type section
- patch 2 documents missing sysctl parameters limit_smc_hs and hs_ctrl, including values/defaults and hs_ctrl usage notes

No code or runtime behavior is changed.

Thanks,
Kyoji

Kyoji Ogasawara (2):
net/smc: fix indentation in smcr_buf_type section net/smc: Add documentation for limit_smc_hs and hs_ctrl

 Documentation/networking/smc-sysctl.rst | 43 ++++++++++++++++++++-----
 1 file changed, 35 insertions(+), 8 deletions(-)
Signature · 1 line
2.43.0
#1 lore raw

PATCH v2 1/2 net/smc: fix indentation in smcr_buf_type section

From: Kyoji Ogasawara <[email protected]>

smcr_buf_type section used inconsistent indentation compared with the rest of this document.

---
 Documentation/networking/smc-sysctl.rst | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
Documentation/networking/smc-sysctl.rst +8 -8
index 904a910f198e..17b8314c0e5e 100644
@@ -23,17 +23,17 @@ autocorking_size - INTEGER
 	Default: 64K
 
 smcr_buf_type - INTEGER
-        Controls which type of sndbufs and RMBs to use in later newly created
-        SMC-R link group. Only for SMC-R.
+	Controls which type of sndbufs and RMBs to use in later newly created
+	SMC-R link group. Only for SMC-R.
 
-        Default: 0 (physically contiguous sndbufs and RMBs)
+	Default: 0 (physically contiguous sndbufs and RMBs)
 
-        Possible values:
+	Possible values:
 
-        - 0 - Use physically contiguous buffers
-        - 1 - Use virtually contiguous buffers
-        - 2 - Mixed use of the two types. Try physically contiguous buffers first.
-          If not available, use virtually contiguous buffers then.
+	- 0 - Use physically contiguous buffers
+	- 1 - Use virtually contiguous buffers
+	- 2 - Mixed use of the two types. Try physically contiguous buffers first.
+	  If not available, use virtually contiguous buffers then.
 
 smcr_testlink_time - INTEGER
 	How frequently SMC-R link sends out TEST_LINK LLC messages to confirm
Signature · 1 line
2.43.0
#2 lore raw

PATCH v2 2/2 net/smc: Add documentation for limit_smc_hs and hs_ctrl

In reply to [email protected]

From: Kyoji Ogasawara <[email protected]>

Document missing SMC sysctl parameters limit_smc_hs and hs_ctrl

---
 Documentation/networking/smc-sysctl.rst | 27 +++++++++++++++++++++++++
 1 file changed, 27 insertions(+)
Documentation/networking/smc-sysctl.rst +27 -0
index 17b8314c0e5e..3bbc5739f8ac 100644
@@ -111,3 +111,30 @@ smcr_max_recv_wr - INTEGER
 	like before having this control.
 
 	Default: 48
+
+limit_smc_hs - INTEGER
+	Whether to limit SMC handshake for newly created sockets.
+
+	When enabled, SMC listen path applies handshake limitation based on
+	handshake worker congestion and queued SMC handshake load.
+
+	Possible values:
+
+	- 0 - Disable handshake limitation
+	- 1 - Enable handshake limitation
+
+	Default: 0 (disable)
+
+hs_ctrl - STRING
+	Select the SMC handshake control profile by name.
+
+	This string refers to the name of a user-implemented
+	BPF struct_ops instance of type smc_hs_ctrl.
+
+	The selected profile controls whether SMC options are advertised
+	during TCP SYN/SYN-ACK handshake.
+
+	Only available when CONFIG_SMC_HS_CTRL_BPF is enabled.
+	Write an empty string to clear the current profile.
+
+	Default: empty string
\ No newline at end of file
Signature · 1 line
2.43.0
Reviewed-by on the v2 series
#3 lore raw
In reply to [email protected]
Quoted 15 lines · On Mon, Mar 09, 2026 at 09:45:38PM +0900, [email protected] wrote:

From: Kyoji Ogasawara <[email protected]>

Hi,

this series updates SMC sysctl documentation in two small steps.

- patch 1 fixes indentation in the smcr_buf_type section
- patch 2 documents missing sysctl parameters limit_smc_hs and hs_ctrl, including values/defaults and hs_ctrl usage notes

No code or runtime behavior is changed.

Thanks,
Kyoji

Quoted 10 lines

Kyoji Ogasawara (2):
net/smc: fix indentation in smcr_buf_type section net/smc: Add documentation for limit_smc_hs and hs_ctrl

 Documentation/networking/smc-sysctl.rst | 43 ++++++++++++++++++++-----
 1 file changed, 35 insertions(+), 8 deletions(-)
Signature · 1 line
2.43.0

Thanks for your contribution. The whole series looks good to me.

#4 lore raw
In reply to [email protected]
This series was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This series was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Quoted 11 lines · On Mon, 9 Mar 2026 21:45:38 +0900 you wrote:

From: Kyoji Ogasawara <[email protected]>

Hi,

this series updates SMC sysctl documentation in two small steps.

- patch 1 fixes indentation in the smcr_buf_type section
- patch 2 documents missing sysctl parameters limit_smc_hs and hs_ctrl, including values/defaults and hs_ctrl usage notes

[...]

Here is the summary with links:
- [v2,net-next,1/2] net/smc: fix indentation in smcr_buf_type section

    https://git.kernel.org/netdev/net-next/c/4a51ac9056c1
  - [v2,net-next,2/2] net/smc: Add documentation for limit_smc_hs and hs_ctrl
    https://git.kernel.org/netdev/net-next/c/aa5ec9d03b9c

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html