summaryrefslogtreecommitdiffstats
path: root/.gitignore
diff options
context:
space:
mode:
authorLogan Gunthorpe <logang@deltatee.com>2016-06-20 13:15:09 -0600
committerJon Mason <jdmason@kudzu.us>2016-08-05 10:21:07 -0400
commit717146a2a8cbf6dbcb8fdf4ae7cddd2d6074161c (patch)
tree46e4f9b227ba9a604b5ba298e29198cf6ce9ab77 /.gitignore
parent26dc638ae6e32bddfb8d3da0fc93946955c28c78 (diff)
downloadlinux-717146a2a8cbf6dbcb8fdf4ae7cddd2d6074161c.tar.bz2
ntb_tool: Postpone memory window initialization for the user
In order to make the interface closer to the raw NTB API, this commit changes memory windows so they are not initialized on link up. Instead, the 'peer_trans*' debugfs files are introduced. When read, they return information provided by ntb_mw_get_range. When written, they create a buffer and initialize the memory window. The value written is taken as the requested size of the buffer (which is then rounded for alignment). Writing a value of zero frees the buffer and tears down the memory window translation. The 'peer_mw*' file is only created once the memory window translation is setup by the user. Additionally, it was noticed that the read and write functions for the 'peer_mw*' files should have checked for a NULL pointer. Signed-off-by: Logan Gunthorpe <logang@deltatee.com> Acked-by: Allen Hubbe <Allen.Hubbe@emc.com> Signed-off-by: Jon Mason <jdmason@kudzu.us>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions