From: Pramod Kumar Date: Fri, 21 Nov 2014 15:36:35 +0000 (-0600) Subject: RDMA/cxgb4: Configure 0B MRs to match HW implementation X-Git-Tag: omap-for-v3.19/fixes-rc1~37^2^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=123bc2a27aa4cd18a5fe4f5d66254e4863870362;p=pandora-kernel.git RDMA/cxgb4: Configure 0B MRs to match HW implementation 0B MRs need some tweaks to work correctly with HW. When writing the TPTE, if the MR length is zero we now: 1) turn off all permissions 2) set the length to -1 While functionality/capabilities of the MR are the same with these changes, it resolves a dapltest 0B RDMA Read test failure. Based on original work by Steve Wise . Signed-off-by: Pramod Kumar Signed-off-by: Steve Wise Signed-off-by: Hariprasad Shenai Signed-off-by: Roland Dreier --- Reading git-diff-tree failed