aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorWen Gu <[email protected]>2024-04-28 06:07:35 +0000
committerPaolo Abeni <[email protected]>2024-04-30 11:24:48 +0000
commit4398888268582cb51b69c6ee94f551bb8d37d12f (patch)
tree13f8f7f8805bc634546aba27ed5a940c559998f4 /net/unix/af_unix.c
parentnet/smc: register loopback-ism into SMC-D device list (diff)
downloadkernel-4398888268582cb51b69c6ee94f551bb8d37d12f.tar.gz
kernel-4398888268582cb51b69c6ee94f551bb8d37d12f.zip
net/smc: add operations to merge sndbuf with peer DMB
In some scenarios using Emulated-ISM device, sndbuf can share the same physical memory region with peer DMB to avoid data copy from one side to the other. In such case the sndbuf is only a descriptor that describes the shared memory and does not actually occupy memory, it's more like a ghost buffer. +----------+ +----------+ | socket A | | socket B | +----------+ +----------+ | | +--------+ +--------+ | sndbuf | | DMB | | desc | | desc | +--------+ +--------+ | | | +----v-----+ +--------------------------> memory | +----------+ So here introduces three new SMC-D device operations to check if this feature is supported by device, and to {attach|detach} ghost sndbuf to peer DMB. For now only loopback-ism supports this. Signed-off-by: Wen Gu <[email protected]> Reviewed-by: Wenjia Zhang <[email protected]> Reviewed-and-tested-by: Jan Karcher <[email protected]> Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions