src/dpdk/drivers/net/mvpp2/mrvl_flow.c
static int
mrvl_flow_validate(struct rte_eth_dev *dev,
		   const struct rte_flow_attr *attr,
		   const struct rte_flow_item pattern[],
		   const struct rte_flow_action actions[],
		   struct rte_flow_error *error)
{
	static struct rte_flow *flow;

	flow = mrvl_flow_create(dev, attr, pattern, actions, error);
	if (!flow)
		return -rte_errno;

	mrvl_flow_destroy(dev, flow, error);

	return 0;
}
/**
 * DPDK flow callback called to verify given attribute, pattern and actions.
 *
 * @param dev Pointer to the device.
 * @param attr Pointer to the flow attribute.
 * @param pattern Pointer to the flow pattern.
 * @param actions Pointer to the flow actions.
 * @param error Pointer to the flow error.
 * @returns 0 on success, negative value otherwise.
 */
DPDK flow callback called to verify given attribute, pattern and actions.
@param dev Pointer to the device.
@param attr Pointer to the flow attribute.
@param pattern Pointer to the flow pattern.
@param actions Pointer to the flow actions.
@param error Pointer to the flow error.
@returns 0 on success, negative value otherwise.
DPDK flow callback called to verify given attribute pattern and actions . @param dev Pointer to the device . @param attr Pointer to the flow attribute . @param pattern Pointer to the flow pattern . @param actions Pointer to the flow actions . @param error Pointer to the flow error . @returns 0 on success negative value otherwise .
static int
mrvl_flow_validate(struct rte_eth_dev *dev,
		   const struct rte_flow_attr *attr,
		   const struct rte_flow_item pattern[],
		   const struct rte_flow_action actions[],
		   struct rte_flow_error *error)
{
	static struct rte_flow *flow;
	flow = mrvl_flow_create(dev, attr, pattern, actions, error);
	if (!flow)
		return -rte_errno;
	mrvl_flow_destroy(dev, flow, error);
	return 0;
}
static int mrvl_flow_validate ( struct rte_eth_dev * dev , const struct rte_flow_attr * attr , const struct rte_flow_item pattern [ ] , const struct rte_flow_action actions [ ] , struct rte_flow_error * error ) { static struct rte_flow * flow ; flow = mrvl_flow_create ( dev , attr , pattern , actions , error ) ; if ( ! flow ) return - rte_errno ; mrvl_flow_destroy ( dev , flow , error ) ; return 0 ; }
DPDK flow callback called to verify given attribute, pattern and actions.
DPDK flow callback called to verify given attribute pattern and actions .