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

Function flow_rxq_flags_clear

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

* Clear the Mark/Flag and Tunnel ptype information in all Rx queues. * * @param dev * Pointer to Ethernet device. */

Source from the content-addressed store, hash-verified

1878 * Pointer to Ethernet device.
1879 */
1880static void
1881flow_rxq_flags_clear(struct rte_eth_dev *dev)
1882{
1883 struct mlx5_priv *priv = dev->data->dev_private;
1884 unsigned int i;
1885
1886 for (i = 0; i != priv->rxqs_n; ++i) {
1887 struct mlx5_rxq_priv *rxq = mlx5_rxq_get(dev, i);
1888 unsigned int j;
1889
1890 if (rxq == NULL || rxq->ctrl == NULL)
1891 continue;
1892 rxq->ctrl->rxq.mark = 0;
1893 for (j = 0; j != MLX5_FLOW_TUNNEL; ++j)
1894 rxq->ctrl->flow_tunnels_n[j] = 0;
1895 rxq->ctrl->rxq.tunnel = 0;
1896 }
1897 priv->mark_enabled = 0;
1898 priv->sh->shared_mark_enabled = 0;
1899}
1900
1901static uint64_t mlx5_restore_info_dynflag;
1902

Callers 1

mlx5_flow_stop_defaultFunction · 0.85

Calls 1

mlx5_rxq_getFunction · 0.85

Tested by

no test coverage detected