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

Function mlx5_is_external_rxq

dpdk/drivers/net/mlx5/mlx5_rx.h:687–697  ·  view source on GitHub ↗

* Check whether given RxQ is external. * * @param dev * Pointer to Ethernet device. * @param queue_idx * Rx queue index. * * @return * True if is external RxQ, otherwise false. */

Source from the content-addressed store, hash-verified

685 * True if is external RxQ, otherwise false.
686 */
687static __rte_always_inline bool
688mlx5_is_external_rxq(struct rte_eth_dev *dev, uint16_t queue_idx)
689{
690 struct mlx5_priv *priv = dev->data->dev_private;
691 struct mlx5_external_rxq *rxq;
692
693 if (!priv->ext_rxqs || queue_idx < RTE_PMD_MLX5_EXTERNAL_RX_QUEUE_ID_MIN)
694 return false;
695 rxq = &priv->ext_rxqs[queue_idx - RTE_PMD_MLX5_EXTERNAL_RX_QUEUE_ID_MIN];
696 return !!__atomic_load_n(&rxq->refcnt, __ATOMIC_RELAXED);
697}
698
699#define LWM_COOKIE_RXQID_OFFSET 0
700#define LWM_COOKIE_RXQID_MASK 0xffff

Callers 10

mlx5_devx_tir_attr_setFunction · 0.85
flow_drv_rxq_flags_setFunction · 0.85
flow_drv_rxq_flags_trimFunction · 0.85
mlx5_validate_rss_queuesFunction · 0.85
mlx5_ext_rxq_getFunction · 0.85
mlx5_rxqs_derefFunction · 0.85
mlx5_rxqs_refFunction · 0.85
mlx5_rxq_is_hairpinFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected