IB/iser: Fix responder resources advertisement
authorSagi Grimberg <sagig@mellanox.com>
Thu, 31 Jul 2014 10:27:46 +0000 (13:27 +0300)
committerRoland Dreier <roland@purestorage.com>
Fri, 1 Aug 2014 22:10:04 +0000 (15:10 -0700)
commit2ea32938f3a702d08c5cc2cc9cb8b11235eaad8c
treea5da1c2e39be09ba448a184de49fd900ba4f3bfd
parent9579d603502d0f24272c4dd70451d97c8d306b54
IB/iser: Fix responder resources advertisement

The iser initiator is the RDMA responder so it should publish to the
target the max inflight rdma read requests its local HCA can handle in
responder_resources (max_qp_rd_atom).

The iser target should take the min of that and its local HCA max
inflight oustanding rdma read requests (max_qp_init_rd_atom).

We keep initiator_depth set to 1 in order to compat with old targets.

Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/ulp/iser/iser_verbs.c