| 6855 | } |
| 6856 | |
| 6857 | static int |
| 6858 | flow_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. |
no outgoing calls
no test coverage detected