OSDN Git Service

ntb_perf: avoid false dma unmap of destination address
authorSanjay R Mehta <sanju.mehta@amd.com>
Wed, 6 May 2020 04:21:52 +0000 (23:21 -0500)
committerJon Mason <jdmason@kudzu.us>
Sat, 6 Jun 2020 00:02:08 +0000 (20:02 -0400)
commit9cb8bfdf5262b14d29617d1595b79e1f360135ab
tree7efa13131b751ad157fad3bc3a0bea35a4f56dc0
parentd7699665773b6afc14d4eef82bb3ef50467a9353
ntb_perf: avoid false dma unmap of destination address

The DMA map and unmap of destination address is already being
done in perf_init_test() and perf_clear_test() functions.
Hence avoiding it by making necessary changes in perf_copy_chunk()
function.

Signed-off-by: Sanjay R Mehta <sanju.mehta@amd.com>
Signed-off-by: Arindam Nath <arindam.nath@amd.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
drivers/ntb/test/ntb_perf.c