IB/srpt: Post receive work requests after qp transition to INIT state
authorMike Marciniszyn <mike.marciniszyn@intel.com>
Fri, 3 Nov 2017 23:20:52 +0000 (16:20 -0700)
committerDoug Ledford <dledford@redhat.com>
Mon, 13 Nov 2017 20:25:16 +0000 (15:25 -0500)
commit321e329b9c0b3328e3f6bd4924b9c8c5cbf5c22d
treee6df4c17d3a3760547dea399ebbbf7530dd851d2
parentba97b749979ef0ebb821e58ee8b16a84412922f6
IB/srpt: Post receive work requests after qp transition to INIT state

IB and iWARP specs both spell out that posting a receive work request
to a queue pair in the RESET state is an invalid operation and required
to fail.  Postpone posting receive work requests until after the
transition to the INIT state.

Fixes: commit dea262094cdf ("IB/srpt: Change default behavior from using SRQ to using RC")
Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/ulp/srpt/ib_srpt.c