]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
RDMA/nes: Fix bugs in nes_reg_phys_mr()
authorDon Wood <donald.e.wood@intel.com>
Mon, 20 Apr 2009 21:53:00 +0000 (14:53 -0700)
committerRoland Dreier <rolandd@cisco.com>
Mon, 20 Apr 2009 21:53:00 +0000 (14:53 -0700)
commit3f32eb1185170524a81dadff2e67521585943a53
tree3c44461bed14392563c06b611ccff7e78f80a1cb
parent1af9222b5223a7b04102dc8c403fa55fa15d5184
RDMA/nes: Fix bugs in nes_reg_phys_mr()

The code incorrectly failed memory registration if the buffer was not
page aligned.  Also, the length field is mangled causing the hardware
to think the registration is much larger than it really is.

The fix is to remove the page alignment restriction as well the
incorrect length adjustment.  Also make sure that all buffers after
the first start at a page boundary, and all buffers except the last
end on a page boundary.

Signed-off-by: Don Wood <donald.e.wood@intel.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/nes/nes_verbs.c