net/smc: Introduce a sysctl for setting SMC-R buffer type
authorWen Gu <guwen@linux.alibaba.com>
Thu, 14 Jul 2022 09:44:02 +0000 (17:44 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 Jul 2022 10:19:17 +0000 (11:19 +0100)
commit4bc5008e4387106215b50ae1a4ac2467455725ca
treea4cae8948e6682f0f02f167f7b7d17799f84c025
parent0ef69e788411cba2af017db731a9fc62d255e9ac
net/smc: Introduce a sysctl for setting SMC-R buffer type

This patch introduces the sysctl smcr_buf_type for setting
the type of SMC-R sndbufs and RMBs.

Valid values includes:

- SMCR_PHYS_CONT_BUFS, which means use physically contiguous
  buffers for better performance and is the default value.

- SMCR_VIRT_CONT_BUFS, which means use virtually contiguous
  buffers in case of physically contiguous memory is scarce.

- SMCR_MIXED_BUFS, which means first try to use physically
  contiguous buffers. If not available, then use virtually
  contiguous buffers.

Signed-off-by: Wen Gu <guwen@linux.alibaba.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/networking/smc-sysctl.rst
include/net/netns/smc.h
net/smc/smc_core.h
net/smc/smc_sysctl.c