]> git.baikalelectronics.ru Git - kernel.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)
commitdd9252ce441d77d2cded2daf234f4325a3bda6ec
tree727fa0c4c57aef84be2f41a757893dc9ed4e5c39
parent966a7825f1b36bed3aa939243bd0eb968d04f78e
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