diff options
| author | Sagi Grimberg <[email protected]> | 2015-09-02 19:23:04 +0000 |
|---|---|---|
| committer | Doug Ledford <[email protected]> | 2015-09-03 18:50:06 +0000 |
| commit | b636401f0ec9bbf7931774e00f3adf7ee9214cce (patch) | |
| tree | 06050c24138d3d58f86eec78a4f807be1bd2a20f /lib/string_helpers.c | |
| parent | IB/mlx5: avoid destroying a NULL mr in reg_user_mr error flow (diff) | |
| download | kernel-b636401f0ec9bbf7931774e00f3adf7ee9214cce.tar.gz kernel-b636401f0ec9bbf7931774e00f3adf7ee9214cce.zip | |
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: 4c21b5bcef73 ("IB/cma: Add net_dev and private data checks to
RDMA CM")
Signed-off-by: Sagi Grimberg <[email protected]>
Signed-off-by: Doug Ledford <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions
