diff options
author | Boshi Yu <boshiyu@linux.alibaba.com> | 2025-07-25 13:53:54 +0800 |
---|---|---|
committer | Leon Romanovsky <leon@kernel.org> | 2025-08-13 06:26:33 -0400 |
commit | 4d674c478dc51fe241376e215861d15f1a3a9dc4 (patch) | |
tree | 50ab431d7820c6ec24bef956eaf50a721991ac8b /drivers/infiniband/hw/ionic/ionic_datapath.c | |
parent | a3c9d0fcd3715541bbf97da2ddde9d032e2fe6d5 (diff) |
RDMA/erdma: Use dma_map_page to map scatter MTT buffer
Each high-level indirect MTT entry is assumed to point to exactly one page
of the low-level MTT buffer, but dma_map_sg may merge contiguous physical
pages when mapping. To avoid extra overhead from splitting merged regions,
use dma_map_page to map the scatter MTT buffer page by page.
Reviewed-by: Cheng Xu <chengyou@linux.alibaba.com>
Signed-off-by: Boshi Yu <boshiyu@linux.alibaba.com>
Link: https://patch.msgid.link/20250725055410.67520-2-boshiyu@linux.alibaba.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'drivers/infiniband/hw/ionic/ionic_datapath.c')
0 files changed, 0 insertions, 0 deletions