]> git.baikalelectronics.ru Git - kernel.git/commit
net/smc: remove redundant dma sync ops
authorGuangguan Wang <guangguan.wang@linux.alibaba.com>
Thu, 14 Jul 2022 09:44:00 +0000 (17:44 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 Jul 2022 10:19:16 +0000 (11:19 +0100)
commit1a813a624404d9f3d3844d924f86502a8219a5c3
tree47e3ea2efd01ba5c2e9b3c81da9da5a17d86e493
parentdfe82f114752cfc13b69a198fa64609ffe669d7f
net/smc: remove redundant dma sync ops

smc_ib_sync_sg_for_cpu/device are the ops used for dma memory cache
consistency. Smc sndbufs are dma buffers, where CPU writes data to
it and PCIE device reads data from it. So for sndbufs,
smc_ib_sync_sg_for_device is needed and smc_ib_sync_sg_for_cpu is
redundant as PCIE device will not write the buffers. Smc rmbs
are dma buffers, where PCIE device write data to it and CPU read
data from it. So for rmbs, smc_ib_sync_sg_for_cpu is needed and
smc_ib_sync_sg_for_device is redundant as CPU will not write the buffers.

Signed-off-by: Guangguan Wang <guangguan.wang@linux.alibaba.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/smc/af_smc.c
net/smc/smc_core.c
net/smc/smc_core.h
net/smc/smc_rx.c
net/smc/smc_tx.c