IB/srp: Preparation for transmit ring response allocation
authorBart Van Assche <bvanassche@acm.org>
Mon, 30 Aug 2010 19:27:20 +0000 (19:27 +0000)
committerRoland Dreier <rolandd@cisco.com>
Sat, 23 Oct 2010 05:19:10 +0000 (22:19 -0700)
commitdd5e6e38b2b8bd8bf71cae800e2b613e85ef1522
treeda3ec14113d5f7b235df82de87ec9831e4991a1c
parentfb50a83d8c7cf8c6548166fe6775ad4f41e5ab72
IB/srp: Preparation for transmit ring response allocation

The transmit ring in ib_srp (srp_target.tx_ring) is currently only used
for allocating requests sent by the initiator to the target. This patch
prepares using that ring for allocation of both requests and responses.
Also, this patch differentiates the uses of SRP_SQ_SIZE, increases the
size of the IB send completion queue by one element and reserves one
transmit ring slot for SRP_TSK_MGMT requests.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: David Dillow <dillowda@ornl.gov>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/ulp/srp/ib_srp.c
drivers/infiniband/ulp/srp/ib_srp.h