OSDN Git Service

net/smc: add sysctl for autocorking
authorDust Li <dust.li@linux.alibaba.com>
Tue, 1 Mar 2022 09:43:58 +0000 (17:43 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 Mar 2022 14:25:12 +0000 (14:25 +0000)
commit12bbb0d163a90d81a2677cf7808d364697290207
treecc1b0752c04cca5ee363f20aba99b404ef6e3161
parentdcd2cf5f2fc0d4d37aa5400b308d401a150c38b6
net/smc: add sysctl for autocorking

This add a new sysctl: net.smc.autocorking_size

We can dynamically change the behaviour of autocorking
by change the value of autocorking_size.
Setting to 0 disables autocorking in SMC

Signed-off-by: Dust Li <dust.li@linux.alibaba.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/networking/smc-sysctl.rst [new file with mode: 0644]
include/net/netns/smc.h
net/smc/smc_sysctl.c
net/smc/smc_tx.c