src/dpdk/drivers/net/mlx5/mlx5_rxq.c
static void
rxq_free_elts_mprq(struct mlx5_rxq_ctrl *rxq_ctrl)
{
	struct mlx5_rxq_data *rxq = &rxq_ctrl->rxq;
	uint16_t i;

	DRV_LOG(DEBUG, "port %u Multi-Packet Rx queue %u freeing %d WRs",
		rxq->port_id, rxq->idx, (1u << rxq->elts_n));
	if (rxq->mprq_bufs == NULL)
		return;
	for (i = 0; (i != (1u << rxq->elts_n)); ++i) {
		if ((*rxq->mprq_bufs)[i] != NULL)
			mlx5_mprq_buf_free((*rxq->mprq_bufs)[i]);
		(*rxq->mprq_bufs)[i] = NULL;
	}
	if (rxq->mprq_repl != NULL) {
		mlx5_mprq_buf_free(rxq->mprq_repl);
		rxq->mprq_repl = NULL;
	}
}
/**
 * Free RX queue elements for Multi-Packet RQ.
 *
 * @param rxq_ctrl
 *   Pointer to RX queue structure.
 */
Free RX queue elements for Multi-Packet RQ.
@param rxq_ctrl
Pointer to RX queue structure.
Free RX queue elements for Multi - Packet RQ . @param rxq_ctrl Pointer to RX queue structure .
static void
rxq_free_elts_mprq(struct mlx5_rxq_ctrl *rxq_ctrl)
{
	struct mlx5_rxq_data *rxq = &rxq_ctrl->rxq;
	uint16_t i;
	DRV_LOG(DEBUG, "port %u Multi-Packet Rx queue %u freeing %d WRs",
		rxq->port_id, rxq->idx, (1u << rxq->elts_n));
	if (rxq->mprq_bufs == NULL)
		return;
	for (i = 0; (i != (1u << rxq->elts_n)); ++i) {
		if ((*rxq->mprq_bufs)[i] != NULL)
			mlx5_mprq_buf_free((*rxq->mprq_bufs)[i]);
		(*rxq->mprq_bufs)[i] = NULL;
	}
	if (rxq->mprq_repl != NULL) {
		mlx5_mprq_buf_free(rxq->mprq_repl);
		rxq->mprq_repl = NULL;
	}
}
static void rxq_free_elts_mprq ( struct mlx5_rxq_ctrl * rxq_ctrl ) { struct mlx5_rxq_data * rxq = & rxq_ctrl -> rxq ; uint16_t i ; DRV_LOG ( DEBUG , " " , rxq -> port_id , rxq -> idx , ( 1u << rxq -> elts_n ) ) ; if ( rxq -> mprq_bufs == NULL ) return ; for ( i = 0 ; ( i != ( 1u << rxq -> elts_n ) ) ; ++ i ) { if ( ( * rxq -> mprq_bufs ) [ i ] != NULL ) mlx5_mprq_buf_free ( ( * rxq -> mprq_bufs ) [ i ] ) ; ( * rxq -> mprq_bufs ) [ i ] = NULL ; } if ( rxq -> mprq_repl != NULL ) { mlx5_mprq_buf_free ( rxq -> mprq_repl ) ; rxq -> mprq_repl = NULL ; } }
Free RX queue elements for Multi-Packet RQ.
Free RX queue elements for Multi - Packet RQ .