]> git.baikalelectronics.ru Git - kernel.git/commit
staging/rdma/hfi1: Fix header size calculation for RC/UC QPs with GRH enabled
authorJianxin Xiong <jianxin.xiong@intel.com>
Fri, 26 Feb 2016 21:33:13 +0000 (13:33 -0800)
committerDoug Ledford <dledford@redhat.com>
Fri, 11 Mar 2016 01:45:45 +0000 (20:45 -0500)
commit37b07c8ddd58c275322e93c7d8dc88c6270bbeec
tree26493a1b5475be43b0e504d93bc68fcf7d190e3c
parent1aa84a752547989d42bcd751c9f21cdfd4204c3a
staging/rdma/hfi1: Fix header size calculation for RC/UC QPs with GRH enabled

There is a header size counter in both the QP struture and the txreq
structure. The counter in the txreq structure is not updated properly
for RC and UC queue pairs with GRH enabled, and thus causing SDMA
send to fail. This patch fixes the RC and UC path.

Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Reviewed-by: Dean Luick <dean.luick@intel.com>
Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Jianxin Xiong <jianxin.xiong@intel.com>
Signed-off-by: Jubin John <jubin.john@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/staging/rdma/hfi1/rc.c
drivers/staging/rdma/hfi1/uc.c