* Disable traffic flows configured by control plane * * @param dev * Pointer to Ethernet device private data. */
| 1748 | * Pointer to Ethernet device private data. |
| 1749 | */ |
| 1750 | void |
| 1751 | mlx5_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 |
no test coverage detected