]> git.baikalelectronics.ru Git - kernel.git/commit
IB/cma: Use inner P_Key to determine netdev
authorHaggai Eran <haggaie@mellanox.com>
Tue, 20 Oct 2015 06:53:01 +0000 (09:53 +0300)
committerDoug Ledford <dledford@redhat.com>
Tue, 20 Oct 2015 18:16:51 +0000 (14:16 -0400)
commit9ba36ce9842a80e819cd6076ef64e84fbdf5c12d
tree2bc051398f85dcbdd5c1838c205bb84096f733f3
parent9d44721a659b48d29d0bd6760180883998ea4e28
IB/cma: Use inner P_Key to determine netdev

When discussing the patches to demux ids in rdma_cm instead of ib_cm, it
was decided that it is best to use the P_Key value in the packet headers.
However, the mlx5 and ipath drivers are currently unable to send correct
P_Key values in GMP headers. They always send using a single P_Key that is
set during the GSI QP initialization.

Change the rdma_cm code to look at the P_Key value that is part of the
packet payload as a workaround. Once the drivers are fixed this patch can
be reverted.

Fixes: 83f5d78cb370 ("IB/cma: Add net_dev and private data checks to
RDMA CM")
Signed-off-by: Haggai Eran <haggaie@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/cma.c