summaryrefslogtreecommitdiff
path: root/drivers/net/mlx5/mlx5_mr.c
diff options
context:
space:
mode:
authorShachar Beiser <shacharbe@mellanox.com>2017-09-17 10:42:02 +0000
committerFerruh Yigit <ferruh.yigit@intel.com>2017-10-06 02:49:48 +0200
commit6b30a6a8552abd848704126595001790898f49f7 (patch)
tree8d202a8a65e125dc8e5265f9c75b599ce8ca4e42 /drivers/net/mlx5/mlx5_mr.c
parent671f8776871d2e46c0619c743a82b2f6f6ce58ec (diff)
downloaddpdk-next-eventdev-6b30a6a8552abd848704126595001790898f49f7.zip
dpdk-next-eventdev-6b30a6a8552abd848704126595001790898f49f7.tar.gz
dpdk-next-eventdev-6b30a6a8552abd848704126595001790898f49f7.tar.xz
net/mlx5: replace network to host macros
Signed-off-by: Shachar Beiser <shacharbe@mellanox.com> Acked-by: Yongseok Koh <yskoh@mellanox.com> Acked-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
Diffstat (limited to 'drivers/net/mlx5/mlx5_mr.c')
-rw-r--r--drivers/net/mlx5/mlx5_mr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/mlx5/mlx5_mr.c b/drivers/net/mlx5/mlx5_mr.c
index 9593830..9a9f73a 100644
--- a/drivers/net/mlx5/mlx5_mr.c
+++ b/drivers/net/mlx5/mlx5_mr.c
@@ -203,7 +203,7 @@ txq_mp2mr_reg(struct txq *txq, struct rte_mempool *mp, unsigned int idx)
txq_ctrl->txq.mp2mr[idx].start = (uintptr_t)mr->addr;
txq_ctrl->txq.mp2mr[idx].end = (uintptr_t)mr->addr + mr->length;
txq_ctrl->txq.mp2mr[idx].mr = mr;
- txq_ctrl->txq.mp2mr[idx].lkey = htonl(mr->lkey);
+ txq_ctrl->txq.mp2mr[idx].lkey = rte_cpu_to_be_32(mr->lkey);
DEBUG("%p: new MR lkey for MP \"%s\" (%p): 0x%08" PRIu32,
(void *)txq_ctrl, mp->name, (void *)mp,
txq_ctrl->txq.mp2mr[idx].lkey);