src/dpdk/drivers/net/mlx4/mlx4_mr.c
static uint32_t
mlx4_mr_update_ext_mp(struct rte_eth_dev *dev, struct mlx4_mr_ctrl *mr_ctrl,
		      struct rte_mempool *mp)
{
	struct mr_update_mp_data data = {
		.dev = dev,
		.mr_ctrl = mr_ctrl,
		.ret = 0,
	};

	rte_mempool_mem_iter(mp, mlx4_mr_update_ext_mp_cb, &data);
	return data.ret;
}
/**
 * Register MR for entire memory chunks in a Mempool having externally allocated
 * memory and fill in local cache.
 *
 * @param dev
 *   Pointer to Ethernet device.
 * @param mr_ctrl
 *   Pointer to per-queue MR control structure.
 * @param mp
 *   Pointer to registering Mempool.
 *
 * @return
 *   0 on success, -1 on failure.
 */
Register MR for entire memory chunks in a Mempool having externally allocated
memory and fill in local cache.

@param dev
Pointer to Ethernet device.
@param mr_ctrl
Pointer to per-queue MR control structure.
@param mp
Pointer to registering Mempool.

@return
0 on success, -1 on failure.
Register MR for entire memory chunks in a Mempool having externally allocated memory and fill in local cache . @param dev Pointer to Ethernet device . @param mr_ctrl Pointer to per - queue MR control structure . @param mp Pointer to registering Mempool . @return 0 on success - 1 on failure .
static uint32_t
mlx4_mr_update_ext_mp(struct rte_eth_dev *dev, struct mlx4_mr_ctrl *mr_ctrl,
		      struct rte_mempool *mp)
{
	struct mr_update_mp_data data = {
		.dev = dev,
		.mr_ctrl = mr_ctrl,
		.ret = 0,
	};
	rte_mempool_mem_iter(mp, mlx4_mr_update_ext_mp_cb, &data);
	return data.ret;
}
static uint32_t mlx4_mr_update_ext_mp ( struct rte_eth_dev * dev , struct mlx4_mr_ctrl * mr_ctrl , struct rte_mempool * mp ) { struct mr_update_mp_data data = { . dev = dev , . mr_ctrl = mr_ctrl , . ret = 0 , } ; rte_mempool_mem_iter ( mp , mlx4_mr_update_ext_mp_cb , & data ) ; return data . ret ; }
Register MR for entire memory chunks in a Mempool having externally allocated
 memory and fill in local cache.
Register MR for entire memory chunks in a Mempool having externally allocated memory and fill in local cache .