]> git.baikalelectronics.ru Git - kernel.git/commit
ntb_perf: Allow limiting the size of the memory windows
authorLogan Gunthorpe <logang@deltatee.com>
Fri, 3 Jun 2016 20:50:31 +0000 (14:50 -0600)
committerJon Mason <jdmason@kudzu.us>
Fri, 5 Aug 2016 14:21:06 +0000 (10:21 -0400)
commit4aae977721f0367809cdc94584b6945073d9fe10
tree2ed434a025160326c1bfc04b61269ad867b5cc51
parenta754a8fcaf383be3c5fcc6c3c08e36d9f3005988
ntb_perf: Allow limiting the size of the memory windows

On my system, dma_alloc_coherent won't produce memory anywhere
near the size of the BAR. So I needed a way to limit this.

It's pretty much copied straight from ntb_transport.

Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Acked-by: Dave Jiang <dave.jiang@intel.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
drivers/ntb/test/ntb_perf.c