net/smc: {at|de}tach sndbuf to peer DMB if supported
authorWen Gu <guwen@linux.alibaba.com>
Sun, 28 Apr 2024 06:07:36 +0000 (14:07 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 30 Apr 2024 11:24:48 +0000 (13:24 +0200)
commitae2be35cbed2c8385e890147ea321a3fcc3ca5fa
tree592a3af27fc6f8a26161ae722d23bcb3bcb8c904
parent4398888268582cb51b69c6ee94f551bb8d37d12f
net/smc: {at|de}tach sndbuf to peer DMB if supported

If the device used by SMC-D supports merging local sndbuf to peer DMB,
then create sndbuf descriptor and attach it to peer DMB once peer
token is obtained, and detach and free the sndbuf descriptor when the
connection is freed.

Signed-off-by: Wen Gu <guwen@linux.alibaba.com>
Reviewed-by: Wenjia Zhang <wenjia@linux.ibm.com>
Reviewed-and-tested-by: Jan Karcher <jaka@linux.ibm.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
net/smc/af_smc.c
net/smc/smc_core.c
net/smc/smc_core.h