diff options
author | Artemy Kovalyov <artemyko@mellanox.com> | 2019-03-19 11:24:39 +0200 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2019-03-27 15:27:56 -0300 |
commit | d623dfd2836114507d647c9793a80d213d8bffe8 (patch) | |
tree | e568b983ec5517a8a6b1c59923d09b7908d3afec /drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c | |
parent | IB/mlx5: WQE dump jumps over first 16 bytes (diff) | |
download | linux-dev-d623dfd2836114507d647c9793a80d213d8bffe8.tar.xz linux-dev-d623dfd2836114507d647c9793a80d213d8bffe8.zip |
IB/mlx5: Compare only index part of a memory window rkey
The InfiniBand Architecture Specification section 10.6.7.2.4 TYPE 2 MEMORY
WINDOWS says that if the CI supports the Base Memory Management Extensions
defined in this specification, the R_Key format for a Type 2 Memory Window
must consist of:
* 24 bit index in the most significant bits of the R_Key, which is owned
by the CI, and
* 8 bit key in the least significant bits of the R_Key, which is owned by
the Consumer.
This means that the kernel should compare only the index part of a R_Key
to determine equality with another R_Key.
Fixes: db570d7deafb ("IB/mlx5: Add ODP support to MW")
Signed-off-by: Artemy Kovalyov <artemyko@mellanox.com>
Signed-off-by: Moni Shoua <monis@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c')
0 files changed, 0 insertions, 0 deletions