diff options
author | Guangguan Wang <guangguan.wang@linux.alibaba.com> | 2022-07-14 17:44:01 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-07-18 11:19:17 +0100 |
commit | 0ef69e788411cba2af017db731a9fc62d255e9ac (patch) | |
tree | 4eef442d258216d382747071b839592992519931 /lib/random32.c | |
parent | 6d52e2de6415b7a035b3e8dc4ccffd0da25bbfb9 (diff) | |
download | linux-stable-0ef69e788411cba2af017db731a9fc62d255e9ac.tar.gz linux-stable-0ef69e788411cba2af017db731a9fc62d255e9ac.tar.bz2 linux-stable-0ef69e788411cba2af017db731a9fc62d255e9ac.zip |
net/smc: optimize for smc_sndbuf_sync_sg_for_device and smc_rmb_sync_sg_for_cpu
Some CPU, such as Xeon, can guarantee DMA cache coherency.
So it is no need to use dma sync APIs to flush cache on such CPUs.
In order to avoid calling dma sync APIs on the IO path, use the
dma_need_sync to check whether smc_buf_desc needs dma sync when
creating smc_buf_desc.
Signed-off-by: Guangguan Wang <guangguan.wang@linux.alibaba.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib/random32.c')
0 files changed, 0 insertions, 0 deletions