]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/cma: Do not query GID during QP state transition to RTR
authorParav Pandit <parav@mellanox.com>
Wed, 2 May 2018 10:18:59 +0000 (13:18 +0300)
committerDoug Ledford <dledford@redhat.com>
Thu, 3 May 2018 19:45:18 +0000 (15:45 -0400)
commit2e184d2c91d2791e99e7595ddb4e16af6fe59006
treeb35ccb9608e39c512f72dff462aec7dda4431c60
parent555ec89806bca78ed2c45c0f61a2dc8b27ad4ddb
RDMA/cma: Do not query GID during QP state transition to RTR

When commit [1] was added, SGID was queried to derive the SMAC address.
Then, later on during a refactor [2], SMAC was no longer needed. However,
the now useless GID query remained.  Then during additional code changes
later on, the GID query was being done in such a way that it caused iWARP
queries to start breaking.  Remove the useless GID query and resolve the
iWARP breakage at the same time.

This is discussed in [3].

[1] commit ed79cc8a81ca ("IB/core: Ethernet L2 attributes in verbs/cm structures")
[2] commit cf0490208a64 ("IB/cm: Remove the usage of smac and vid of qp_attr and cm_av")
[3] https://www.spinics.net/lists/linux-rdma/msg63951.html

Suggested-by: Shiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/cma.c