]> git.baikalelectronics.ru Git - kernel.git/commit
i40iw: Add support for port reuse on active side connections
authorShiraz Saleem <shiraz.saleem@intel.com>
Tue, 19 Sep 2017 14:19:13 +0000 (09:19 -0500)
committerDoug Ledford <dledford@redhat.com>
Fri, 22 Sep 2017 17:43:36 +0000 (13:43 -0400)
commit747b47189f3b320a0f7c9025db3eee8e04cc9413
tree5c8c786dd3a266b2596011d0e2fae433c66fc32e
parentd1f0dfb64f4f35583ab85fcfd98aeb0b5271b70c
i40iw: Add support for port reuse on active side connections

During OpenMPI scale up testing, we observe rdma_connect
failures if ports are reused on multiple connections.
This is because the Control Queue-Pair (CQP) command to add
the reused port to Accelerated Port Bit VectorTable (APBVT)
fails as there already exists an entry.

Check for duplicate port before invoking the CQP command
to add APBVT entry and delete the entry only if the port
is not in use.

Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/i40iw/i40iw_cm.c
drivers/infiniband/hw/i40iw/i40iw_cm.h