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

Function flow_count_vlan_items

dpdk/drivers/net/mlx5/mlx5_flow.c:6857–6868  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6855}
6856
6857static int
6858flow_count_vlan_items(const struct rte_flow_item items[])
6859{
6860 int items_n = 0;
6861
6862 for (; items->type != RTE_FLOW_ITEM_TYPE_END; items++) {
6863 if (items->type == RTE_FLOW_ITEM_TYPE_VLAN ||
6864 items->type == (enum rte_flow_item_type)MLX5_RTE_FLOW_ITEM_TYPE_VLAN)
6865 items_n++;
6866 }
6867 return items_n;
6868}
6869
6870/**
6871 * The splitting for meter feature.

Callers 1

flow_create_split_meterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected