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

Function mlx5_traffic_disable

dpdk/drivers/net/mlx5/mlx5_trigger.c:1750–1761  ·  view source on GitHub ↗

* Disable traffic flows configured by control plane * * @param dev * Pointer to Ethernet device private data. */

Source from the content-addressed store, hash-verified

1748 * Pointer to Ethernet device private data.
1749 */
1750void
1751mlx5_traffic_disable(struct rte_eth_dev *dev)
1752{
1753#ifdef HAVE_MLX5_HWS_SUPPORT
1754 struct mlx5_priv *priv = dev->data->dev_private;
1755
1756 if (priv->sh->config.dv_flow_en == 2)
1757 mlx5_flow_hw_flush_ctrl_flows(dev);
1758 else
1759#endif
1760 mlx5_flow_list_flush(dev, MLX5_FLOW_TYPE_CTL, false);
1761}
1762
1763/**
1764 * Restart traffic flows configured by control plane

Callers 4

mlx5_dev_closeFunction · 0.85
mlx5_trigger.cFile · 0.85
mlx5_dev_stopFunction · 0.85
mlx5_traffic_restartFunction · 0.85

Calls 2

mlx5_flow_list_flushFunction · 0.85

Tested by

no test coverage detected