* 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. */
| 2192 | * A pointer to the queue if it exists, NULL otherwise. |
| 2193 | */ |
| 2194 | struct mlx5_external_rxq * |
| 2195 | mlx5_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. |
no test coverage detected