net/smc: Use sysctl-specified types of buffers in new link group
authorWen Gu <guwen@linux.alibaba.com>
Thu, 14 Jul 2022 09:44:03 +0000 (17:44 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 Jul 2022 10:19:17 +0000 (11:19 +0100)
commitb984f370ed5182d180f92dbf14bdf847ff6ccc04
treeeab8d07b4b658b5eda523f668ded777706da718f
parent4bc5008e4387106215b50ae1a4ac2467455725ca
net/smc: Use sysctl-specified types of buffers in new link group

This patch introduces a new SMC-R specific element buf_type
in struct smc_link_group, for recording the value of sysctl
smcr_buf_type when link group is created.

New created link group will create and reuse buffers of the
type specified by buf_type.

Signed-off-by: Wen Gu <guwen@linux.alibaba.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/smc/smc_core.c
net/smc/smc_core.h