src/dpdk/drivers/net/mlx5/mlx5_rxq.c
void
mlx5_drop_action_destroy(struct rte_eth_dev *dev)
{
	struct mlx5_priv *priv = dev->data->dev_private;
	struct mlx5_hrxq *hrxq = priv->drop_queue.hrxq;

	if (!priv->drop_queue.hrxq)
		return;
	priv->obj_ops.drop_action_destroy(dev);
	mlx5_free(priv->drop_queue.rxq);
	mlx5_free(hrxq->ind_table);
	mlx5_free(hrxq);
	priv->drop_queue.rxq = NULL;
	priv->drop_queue.hrxq = NULL;
}
/**
 * Release a drop hash Rx queue.
 *
 * @param dev
 *   Pointer to Ethernet device.
 */
Release a drop hash Rx queue.
@param dev
Pointer to Ethernet device.
Release a drop hash Rx queue . @param dev Pointer to Ethernet device .
void
mlx5_drop_action_destroy(struct rte_eth_dev *dev)
{
	struct mlx5_priv *priv = dev->data->dev_private;
	struct mlx5_hrxq *hrxq = priv->drop_queue.hrxq;
	if (!priv->drop_queue.hrxq)
		return;
	priv->obj_ops.drop_action_destroy(dev);
	mlx5_free(priv->drop_queue.rxq);
	mlx5_free(hrxq->ind_table);
	mlx5_free(hrxq);
	priv->drop_queue.rxq = NULL;
	priv->drop_queue.hrxq = NULL;
}
void mlx5_drop_action_destroy ( struct rte_eth_dev * dev ) { struct mlx5_priv * priv = dev -> data -> dev_private ; struct mlx5_hrxq * hrxq = priv -> drop_queue . hrxq ; if ( ! priv -> drop_queue . hrxq ) return ; priv -> obj_ops . drop_action_destroy ( dev ) ; mlx5_free ( priv -> drop_queue . rxq ) ; mlx5_free ( hrxq -> ind_table ) ; mlx5_free ( hrxq ) ; priv -> drop_queue . rxq = NULL ; priv -> drop_queue . hrxq = NULL ; }
Release a drop hash Rx queue.
Release a drop hash Rx queue .