OSDN Git Service

IB/mlx5: Introduce and use mkey context setting helper routine
authorParav Pandit <parav@mellanox.com>
Sun, 6 Oct 2019 15:54:43 +0000 (18:54 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 8 Oct 2019 19:45:07 +0000 (16:45 -0300)
commit03232cc43cff18ae44a30ceb455a036586ee8244
treef833ce8042da66e0c867f614aa6fcbaa010c6bd6
parent3466c060ef6adffefc8aaa45d1fe01b64cd6007d
IB/mlx5: Introduce and use mkey context setting helper routine

Introduce and use set_mkc_access_pd_addr_fields() which sets mkey
context's access rights, PD, address fields.  Thereby avoid the code
duplication.

Link: https://lore.kernel.org/r/20191006155443.31068-1-leon@kernel.org
Signed-off-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/mr.c