]> 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)
commit9be0ae9c4e1dc919dae14031640d0efdba9ce762
tree727fa0c4c57aef84be2f41a757893dc9ed4e5c39
parenta07cd8a3e8f4245e4faaa1f404e3ec2b41432e23
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