MCPcopy Create free account
hub / github.com/F-Stack/f-stack / mlx5_ext_rxq_get

Function mlx5_ext_rxq_get

dpdk/drivers/net/mlx5/mlx5_rxq.c:2194–2201  ·  view source on GitHub ↗

* Get an external Rx queue. * * @param dev * Pointer to Ethernet device. * @param idx * External Rx queue index. * * @return * A pointer to the queue if it exists, NULL otherwise. */

Source from the content-addressed store, hash-verified

2192 * A pointer to the queue if it exists, NULL otherwise.
2193 */
2194struct mlx5_external_rxq *
2195mlx5_ext_rxq_get(struct rte_eth_dev *dev, uint16_t idx)
2196{
2197 struct mlx5_priv *priv = dev->data->dev_private;
2198
2199 MLX5_ASSERT(mlx5_is_external_rxq(dev, idx));
2200 return &priv->ext_rxqs[idx - RTE_PMD_MLX5_EXTERNAL_RX_QUEUE_ID_MIN];
2201}
2202
2203/**
2204 * Dereference a list of Rx queues.

Callers 4

mlx5_ext_rxq_refFunction · 0.85
mlx5_ext_rxq_derefFunction · 0.85
mlx5_ext_rxq_verifyFunction · 0.85

Calls 1

mlx5_is_external_rxqFunction · 0.85

Tested by

no test coverage detected