]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
iw_cxgb4: don't use WR keys/addrs for 0 byte reads
authorGanesh Goudar <ganeshgr@chelsio.com>
Wed, 21 Jun 2017 14:25:43 +0000 (19:55 +0530)
committerDoug Ledford <dledford@redhat.com>
Thu, 20 Jul 2017 15:20:50 +0000 (11:20 -0400)
commit720336c42e41a917002fcae3aa14e30f5022bbb7
tree727fa0c4c57aef84be2f41a757893dc9ed4e5c39
parent4542e3c79a2c5a167cbeb4f4190d5f705d272002
iw_cxgb4: don't use WR keys/addrs for 0 byte reads

Only use the read sge lkey/addr and the remote rkey/addr if the
length of the read is not zero. Otherwise the read response might
be treated as the RTR read response and not delivered to the
application. Or worse Terminator hardware will fail a 0B read
if the STAG is 0 even if the read length is 0.

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Ganesh Goudar <ganeshgr@chelsio.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/cxgb4/qp.c