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

Function mlx5_traffic_restart

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

* 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. */

Source from the content-addressed store, hash-verified

1770 * 0 on success, a negative errno value otherwise and rte_errno is set.
1771 */
1772int
1773mlx5_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}

Callers 9

mlx5_vlan_filter_setFunction · 0.85
mlx5_dev_rss_reta_updateFunction · 0.85
mlx5_promiscuous_enableFunction · 0.85
mlx5_promiscuous_disableFunction · 0.85
mlx5_allmulticast_enableFunction · 0.85
mlx5_mac_addr_removeFunction · 0.85
mlx5_mac_addr_addFunction · 0.85
mlx5_set_mc_addr_listFunction · 0.85

Calls 3

mlx5_traffic_disableFunction · 0.85
mlx5_traffic_enableFunction · 0.85

Tested by

no test coverage detected