src/dpdk/drivers/net/iavf/iavf_generic_flow.c
static bool
iavf_match_pattern(enum rte_flow_item_type *item_array,
		   const struct rte_flow_item *pattern)
{
	const struct rte_flow_item *item = pattern;

	while ((*item_array == item->type) &&
	       (*item_array != RTE_FLOW_ITEM_TYPE_END)) {
		item_array++;
		item++;
	}

	return (*item_array == RTE_FLOW_ITEM_TYPE_END &&
		item->type == RTE_FLOW_ITEM_TYPE_END);
}
/* Check if the pattern matches a supported item type array */
Check if the pattern matches a supported item type array
Check if the pattern matches a supported item type array
static bool
iavf_match_pattern(enum rte_flow_item_type *item_array,
		   const struct rte_flow_item *pattern)
{
	const struct rte_flow_item *item = pattern;
	while ((*item_array == item->type) &&
	       (*item_array != RTE_FLOW_ITEM_TYPE_END)) {
		item_array++;
		item++;
	}
	return (*item_array == RTE_FLOW_ITEM_TYPE_END &&
		item->type == RTE_FLOW_ITEM_TYPE_END);
}
static bool iavf_match_pattern ( enum rte_flow_item_type * item_array , const struct rte_flow_item * pattern ) { const struct rte_flow_item * item = pattern ; while ( ( * item_array == item -> type ) && ( * item_array != RTE_FLOW_ITEM_TYPE_END ) ) { item_array ++ ; item ++ ; } return ( * item_array == RTE_FLOW_ITEM_TYPE_END && item -> type == RTE_FLOW_ITEM_TYPE_END ) ; }
Check if the pattern matches a supported item type array
Check if the pattern matches a supported item type array