src/dpdk/drivers/net/enic/enic_flow.c
static int
enic_flow_validate(struct rte_eth_dev *dev, const struct rte_flow_attr *attrs,
		   const struct rte_flow_item pattern[],
		   const struct rte_flow_action actions[],
		   struct rte_flow_error *error)
{
	struct filter_v2 enic_filter;
	struct filter_action_v2 enic_action;
	int ret;

	ENICPMD_FUNC_TRACE();

	ret = enic_flow_parse(dev, attrs, pattern, actions, error,
			       &enic_filter, &enic_action);
	if (!ret)
		enic_dump_flow(&enic_action, &enic_filter);
	return ret;
}
/**
 * Validate a flow supported by the NIC.
 *
 * @see rte_flow_validate()
 * @see rte_flow_ops
 */
Validate a flow supported by the NIC.
Validate a flow supported by the NIC .
static int
enic_flow_validate(struct rte_eth_dev *dev, const struct rte_flow_attr *attrs,
		   const struct rte_flow_item pattern[],
		   const struct rte_flow_action actions[],
		   struct rte_flow_error *error)
{
	struct filter_v2 enic_filter;
	struct filter_action_v2 enic_action;
	int ret;
	ENICPMD_FUNC_TRACE();
	ret = enic_flow_parse(dev, attrs, pattern, actions, error,
			       &enic_filter, &enic_action);
	if (!ret)
		enic_dump_flow(&enic_action, &enic_filter);
	return ret;
}
static int enic_flow_validate ( struct rte_eth_dev * dev , const struct rte_flow_attr * attrs , const struct rte_flow_item pattern [ ] , const struct rte_flow_action actions [ ] , struct rte_flow_error * error ) { struct filter_v2 enic_filter ; struct filter_action_v2 enic_action ; int ret ; ENICPMD_FUNC_TRACE ( ) ; ret = enic_flow_parse ( dev , attrs , pattern , actions , error , & enic_filter , & enic_action ) ; if ( ! ret ) enic_dump_flow ( & enic_action , & enic_filter ) ; return ret ; }
Validate a flow supported by the NIC.
Validate a flow supported by the NIC .