src/dpdk/drivers/net/mlx4/mlx4_mr.c
void
mlx4_mr_flush_local_cache(struct mlx4_mr_ctrl *mr_ctrl)
{
	/* Reset the most-recently-used index. */
	mr_ctrl->mru = 0;
	/* Reset the linear search array. */
	mr_ctrl->head = 0;
	memset(mr_ctrl->cache, 0, sizeof(mr_ctrl->cache));
	/* Reset the B-tree table. */
	mr_ctrl->cache_bh.len = 1;
	mr_ctrl->cache_bh.overflow = 0;
	/* Update the generation number. */
	mr_ctrl->cur_gen = *mr_ctrl->dev_gen_ptr;
	DEBUG("mr_ctrl(%p): flushed, cur_gen=%d",
	      (void *)mr_ctrl, mr_ctrl->cur_gen);
}
/**
 * Flush all of the local cache entries.
 *
 * @param mr_ctrl
 *   Pointer to per-queue MR control structure.
 */
Flush all of the local cache entries.
@param mr_ctrl
Pointer to per-queue MR control structure.
Flush all of the local cache entries . @param mr_ctrl Pointer to per - queue MR control structure .
void
mlx4_mr_flush_local_cache(struct mlx4_mr_ctrl *mr_ctrl)
{
	mr_ctrl->mru = 0;
	mr_ctrl->head = 0;
	memset(mr_ctrl->cache, 0, sizeof(mr_ctrl->cache));
	mr_ctrl->cache_bh.len = 1;
	mr_ctrl->cache_bh.overflow = 0;
	mr_ctrl->cur_gen = *mr_ctrl->dev_gen_ptr;
	DEBUG("mr_ctrl(%p): flushed, cur_gen=%d",
	      (void *)mr_ctrl, mr_ctrl->cur_gen);
}
void mlx4_mr_flush_local_cache ( struct mlx4_mr_ctrl * mr_ctrl ) { mr_ctrl -> mru = 0 ; mr_ctrl -> head = 0 ; memset ( mr_ctrl -> cache , 0 , sizeof ( mr_ctrl -> cache ) ) ; mr_ctrl -> cache_bh . len = 1 ; mr_ctrl -> cache_bh . overflow = 0 ; mr_ctrl -> cur_gen = * mr_ctrl -> dev_gen_ptr ; DEBUG ( " " , ( void * ) mr_ctrl , mr_ctrl -> cur_gen ) ; }
Flush all of the local cache entries.
Flush all of the local cache entries .
/* Reset the most-recently-used index. */ /* Reset the linear search array. */ /* Reset the B-tree table. */ /* Update the generation number. */