]> git.ipfire.org Git - thirdparty/linux.git/commit
net/smc: make wr buffer count configurable
authorHalil Pasic <pasic@linux.ibm.com>
Mon, 27 Oct 2025 22:48:55 +0000 (23:48 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 30 Oct 2025 12:31:43 +0000 (13:31 +0100)
commitaef3cdb47bbbef9fea9512ed6c02d64394449d53
treecb59d90663d8eb58bd50602618d8a03d86943dc5
parentea7d0d60ebc9bddf3ad768557dfa1495bc032bf6
net/smc: make wr buffer count configurable

Think SMC_WR_BUF_CNT_SEND := SMC_WR_BUF_CNT used in send context and
SMC_WR_BUF_CNT_RECV := 3 * SMC_WR_BUF_CNT used in recv context. Those
get replaced with lgr->max_send_wr and lgr->max_recv_wr respective.

Please note that although with the default sysctl values
qp_attr.cap.max_send_wr ==  qp_attr.cap.max_recv_wr is maintained but
can not be assumed to be generally true any more. I see no downside to
that, but my confidence level is rather modest.

Signed-off-by: Halil Pasic <pasic@linux.ibm.com>
Reviewed-by: Sidraya Jayagond <sidraya@linux.ibm.com>
Reviewed-by: Dust Li <dust.li@linux.alibaba.com>
Tested-by: Mahanta Jambigi <mjambigi@linux.ibm.com>
Link: https://patch.msgid.link/20251027224856.2970019-2-pasic@linux.ibm.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Documentation/networking/smc-sysctl.rst
include/net/netns/smc.h
net/smc/smc_core.h
net/smc/smc_ib.c
net/smc/smc_llc.c
net/smc/smc_sysctl.c
net/smc/smc_sysctl.h
net/smc/smc_wr.c
net/smc/smc_wr.h