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

Function flow_hw_destroy_vlan

dpdk/drivers/net/mlx5/mlx5_flow_hw.c:8820–8836  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8818}
8819
8820static void
8821flow_hw_destroy_vlan(struct rte_eth_dev *dev)
8822{
8823 struct mlx5_priv *priv = dev->data->dev_private;
8824 enum mlx5dr_table_type i;
8825
8826 for (i = MLX5DR_TABLE_TYPE_NIC_RX; i < MLX5DR_TABLE_TYPE_MAX; i++) {
8827 if (priv->hw_pop_vlan[i]) {
8828 mlx5dr_action_destroy(priv->hw_pop_vlan[i]);
8829 priv->hw_pop_vlan[i] = NULL;
8830 }
8831 if (priv->hw_push_vlan[i]) {
8832 mlx5dr_action_destroy(priv->hw_push_vlan[i]);
8833 priv->hw_push_vlan[i] = NULL;
8834 }
8835 }
8836}
8837
8838static int
8839flow_hw_create_vlan(struct rte_eth_dev *dev)

Callers 2

flow_hw_configureFunction · 0.85
flow_hw_resource_releaseFunction · 0.85

Calls 1

mlx5dr_action_destroyFunction · 0.85

Tested by

no test coverage detected