]> git.baikalelectronics.ru Git - kernel.git/commit
mlx5: Fix incorrect wc pkey_index assignment for GSI messages
authorSagi Grimberg <sagig@mellanox.com>
Wed, 2 Sep 2015 19:23:04 +0000 (22:23 +0300)
committerDoug Ledford <dledford@redhat.com>
Thu, 3 Sep 2015 18:50:06 +0000 (14:50 -0400)
commit4104a49ca9350e0ab7f2ce74dd7456e96b8db6c2
tree06050c24138d3d58f86eec78a4f807be1bd2a20f
parentc0cc4ed5c78882dbe6f49185c677882789eac371
mlx5: Fix incorrect wc pkey_index assignment for GSI messages

Since patch series "Demux IB CM requests in the rdma_cm module" the
P_Key index is taken from the work completion rather than the message
itself.

The HCA provides us with the message P_Key. In order to provide the
P_Key index, we need to look it up. Given that this is relevant only
for GSI messages (session establishments) which is less performance critical,
micro-optimize against the GSI (is_qp1) branch.

Fixes: 692c5adcece7 ("IB/cma: Add net_dev and private data checks to
RDMA CM")
Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/cq.c
drivers/infiniband/hw/mlx5/mlx5_ib.h
drivers/infiniband/hw/mlx5/qp.c