summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSagi Grimberg <sagig@mellanox.com>2014-07-31 13:27:46 +0300
committerRoland Dreier <roland@purestorage.com>2014-08-01 15:10:04 -0700
commit2ea32938f3a702d08c5cc2cc9cb8b11235eaad8c (patch)
treea5da1c2e39be09ba448a184de49fd900ba4f3bfd
parent9579d603502d0f24272c4dd70451d97c8d306b54 (diff)
downloadkernel-2ea32938f3a702d08c5cc2cc9cb8b11235eaad8c.tar.gz
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>
-rw-r--r--drivers/infiniband/ulp/iser/iser_verbs.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/infiniband/ulp/iser/iser_verbs.c b/drivers/infiniband/ulp/iser/iser_verbs.c
index da6f3ddbb0ab..6c7d8ce7b016 100644
--- a/drivers/infiniband/ulp/iser/iser_verbs.c
+++ b/drivers/infiniband/ulp/iser/iser_verbs.c
@@ -694,13 +694,15 @@ static void iser_route_handler(struct rdma_cm_id *cma_id)
struct rdma_conn_param conn_param;
int ret;
struct iser_cm_hdr req_hdr;
+ struct iser_conn *ib_conn = (struct iser_conn *)cma_id->context;
+ struct iser_device *device = ib_conn->device;
ret = iser_create_ib_conn_res((struct iser_conn *)cma_id->context);
if (ret)
goto failure;
memset(&conn_param, 0, sizeof conn_param);
- conn_param.responder_resources = 4;
+ conn_param.responder_resources = device->dev_attr.max_qp_rd_atom;
conn_param.initiator_depth = 1;
conn_param.retry_count = 7;
conn_param.rnr_retry_count = 6;
d1f311beb9e38ce9'>mm: remove kern_addr_valid() completelyKefeng Wang 2022-11-08memory: move hotplug memory notifier priority to same file for easy sortingLiu Shixin 2022-11-08fs/proc/kcore.c: use hotplug_memory_notifier() directlyLiu Shixin 2022-04-29fs/proc/kcore.c: remove check of list iterator against head past the loop bodyJakob Koschel 2021-06-30fs/proc/kcore: use page_offline_(freeze|thaw)David Hildenbrand 2021-06-30fs/proc/kcore: don't read offline sections, logically offline pages and hwpoi...David Hildenbrand 2021-06-30fs/proc/kcore: pfn_is_ram check only applies to KCORE_RAMDavid Hildenbrand 2021-06-30fs/proc/kcore: drop KCORE_REMAP and KCORE_OTHERDavid Hildenbrand 2020-12-15arm: remove CONFIG_ARCH_HAS_HOLES_MEMORYMODELMike Rapoport 2020-06-17maccess: rename probe_kernel_{read,write} to copy_{from,to}_kernel_nofaultChristoph Hellwig 2020-02-04proc: convert everything to "struct proc_ops"Alexey Dobriyan 2019-08-19lockdown: Print current->comm in restriction messagesMatthew Garrett 2019-08-19lockdown: Lock down /proc/kcoreDavid Howells 2019-03-29fs/proc/kcore.c: make kcore_modules staticYueHaibing 2019-03-23x86/gart: Exclude GART aperture from kcoreKairui Song