git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net/mlx5: provide send scheduling error statistics
[dpdk.git]
/
drivers
/
net
/
mlx5
/
mlx5_mp.c
diff --git
a/drivers/net/mlx5/mlx5_mp.c
b/drivers/net/mlx5/mlx5_mp.c
index
43684db
..
a2b5c40
100644
(file)
--- a/
drivers/net/mlx5/mlx5_mp.c
+++ b/
drivers/net/mlx5/mlx5_mp.c
@@
-11,6
+11,7
@@
#include <rte_string_fns.h>
#include <mlx5_common_mp.h>
#include <rte_string_fns.h>
#include <mlx5_common_mp.h>
+#include <mlx5_common_mr.h>
#include "mlx5.h"
#include "mlx5_rxtx.h"
#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;
(const struct mlx5_mp_param *)mp_msg->param;
struct rte_eth_dev *dev;
struct mlx5_priv *priv;
- struct m
lx5_mr_cache
entry;
+ struct m
r_cache_entry
entry;
uint32_t lkey;
int ret;
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);
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);
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;
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;
res->result = 0;
ret = rte_mp_reply(&mp_res, peer);
break;