summaryrefslogtreecommitdiff
path: root/drivers/infiniband/hw
diff options
context:
space:
mode:
authorMichael Guralnik <michaelgur@mellanox.com>2020-03-10 11:22:30 +0300
committerLeon Romanovsky <leonro@mellanox.com>2020-03-13 16:48:10 +0300
commita3cfdd3928113012d0f2c5353277f4e27878a663 (patch)
tree223d9a6870f8e02138674ab9fcbd6b5f1137f601 /drivers/infiniband/hw
parentfc6a9f86f08acd3665f788619afae0d2b2d5a480 (diff)
downloadlinux-a3cfdd3928113012d0f2c5353277f4e27878a663.tar.xz
{IB,net}/mlx5: Move asynchronous mkey creation to mlx5_ib
As mlx5_ib is the only user of the mlx5_core_create_mkey_cb, move the logic inside mlx5_ib and cleanup the code in mlx5_core. Signed-off-by: Michael Guralnik <michaelgur@mellanox.com> Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Diffstat (limited to 'drivers/infiniband/hw')
-rw-r--r--drivers/infiniband/hw/mlx5/mr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/infiniband/hw/mlx5/mr.c b/drivers/infiniband/hw/mlx5/mr.c
index 1b83d00e8ecd..8508af500972 100644
--- a/drivers/infiniband/hw/mlx5/mr.c
+++ b/drivers/infiniband/hw/mlx5/mr.c
@@ -81,10 +81,10 @@ mlx5_ib_create_mkey_cb(struct mlx5_ib_dev *dev,
u32 *in, int inlen, u32 *out, int outlen,
struct mlx5_async_work *context)
{
+ MLX5_SET(create_mkey_in, in, opcode, MLX5_CMD_OP_CREATE_MKEY);
assign_mkey_variant(dev, mkey, in);
- return mlx5_core_create_mkey_cb(dev->mdev, mkey, async_ctx,
- in, inlen, out, outlen,
- create_mkey_callback, context);
+ return mlx5_cmd_exec_cb(async_ctx, in, inlen, out, outlen,
+ create_mkey_callback, context);
}
static void clean_mr(struct mlx5_ib_dev *dev, struct mlx5_ib_mr *mr);