X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fnet%2Fmlx5%2Fmlx5_mp.c;h=a2b5c400004d8c9f09573e0a9e5d772feedcf25b;hb=3b025c0ca425a634b7eead08420fa5a5cfaa1445;hp=43684dbc3aceb969a2b8b656ab80bbe1783d1c73;hpb=a4de9586acb845cb85309cbf16fc974b8a985453;p=dpdk.git diff --git a/drivers/net/mlx5/mlx5_mp.c b/drivers/net/mlx5/mlx5_mp.c index 43684dbc3a..a2b5c40000 100644 --- a/drivers/net/mlx5/mlx5_mp.c +++ b/drivers/net/mlx5/mlx5_mp.c @@ -11,6 +11,7 @@ #include #include +#include #include "mlx5.h" #include "mlx5_rxtx.h" @@ -25,7 +26,7 @@ mlx5_mp_primary_handle(const struct rte_mp_msg *mp_msg, const void *peer) (const struct mlx5_mp_param *)mp_msg->param; struct rte_eth_dev *dev; struct mlx5_priv *priv; - struct mlx5_mr_cache entry; + struct mr_cache_entry entry; uint32_t lkey; int ret; @@ -40,7 +41,10 @@ mlx5_mp_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(dev, &entry, param->args.addr); + lkey = mlx5_mr_create_primary(priv->sh->pd, + &priv->sh->share_cache, + &entry, param->args.addr, + priv->config.mr_ext_memseg_en); if (lkey == UINT32_MAX) res->result = -rte_errno; ret = rte_mp_reply(&mp_res, peer); @@ -48,7 +52,7 @@ mlx5_mp_primary_handle(const struct rte_mp_msg *mp_msg, const void *peer) case MLX5_MP_REQ_VERBS_CMD_FD: mp_init_msg(&priv->mp_id, &mp_res, param->type); mp_res.num_fds = 1; - mp_res.fds[0] = priv->sh->ctx->cmd_fd; + mp_res.fds[0] = ((struct ibv_context *)priv->sh->ctx)->cmd_fd; res->result = 0; ret = rte_mp_reply(&mp_res, peer); break;