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

Function flow_hw_rxq_flag_set

dpdk/drivers/net/mlx5/mlx5_flow.c:8156–8174  ·  view source on GitHub ↗

* Set rxq flag. * * @param[in] dev * Pointer to the rte_eth_dev structure. * @param[in] enable * Flag to enable or not. */

Source from the content-addressed store, hash-verified

8154 * Flag to enable or not.
8155 */
8156void
8157flow_hw_rxq_flag_set(struct rte_eth_dev *dev, bool enable)
8158{
8159 struct mlx5_priv *priv = dev->data->dev_private;
8160 unsigned int i;
8161
8162 if ((!priv->mark_enabled && !enable) ||
8163 (priv->mark_enabled && enable))
8164 return;
8165 for (i = 0; i < priv->rxqs_n; ++i) {
8166 struct mlx5_rxq_ctrl *rxq_ctrl = mlx5_rxq_ctrl_get(dev, i);
8167
8168 /* With RXQ start/stop feature, RXQ might be stopped. */
8169 if (!rxq_ctrl)
8170 continue;
8171 rxq_ctrl->rxq.mark = enable;
8172 }
8173 priv->mark_enabled = enable;
8174}
8175
8176/**
8177 * Start all default actions for flows.

Callers 4

mlx5_dev_stopFunction · 0.85
flow_hw_resource_releaseFunction · 0.85

Calls 1

mlx5_rxq_ctrl_getFunction · 0.85

Tested by

no test coverage detected