common/mlx5: share protection domain object
[dpdk.git] / drivers / net / mlx5 / linux / mlx5_mp_os.c
index 35b2dfd..286a7ca 100644 (file)
@@ -90,7 +90,7 @@ mlx5_mp_os_primary_handle(const struct rte_mp_msg *mp_msg, const void *peer)
        switch (param->type) {
        case MLX5_MP_REQ_CREATE_MR:
                mp_init_msg(&priv->mp_id, &mp_res, param->type);
-               lkey = mlx5_mr_create_primary(priv->sh->pd,
+               lkey = mlx5_mr_create_primary(cdev->pd,
                                              &priv->sh->share_cache,
                                              &entry, param->args.addr,
                                              cdev->config.mr_ext_memseg_en);