* Restart traffic flows configured by control plane * * @param dev * Pointer to Ethernet device private data. * * @return * 0 on success, a negative errno value otherwise and rte_errno is set. */
| 1770 | * 0 on success, a negative errno value otherwise and rte_errno is set. |
| 1771 | */ |
| 1772 | int |
| 1773 | mlx5_traffic_restart(struct rte_eth_dev *dev) |
| 1774 | { |
| 1775 | if (dev->data->dev_started) { |
| 1776 | mlx5_traffic_disable(dev); |
| 1777 | #ifdef HAVE_MLX5_HWS_SUPPORT |
| 1778 | mlx5_flow_hw_cleanup_ctrl_rx_templates(dev); |
| 1779 | #endif |
| 1780 | return mlx5_traffic_enable(dev); |
| 1781 | } |
| 1782 | return 0; |
| 1783 | } |
no test coverage detected