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

	ret = mrvl_flow_parse_attr(priv, attr, flow, error);
	if (ret)
		return ret;

	ret = mrvl_flow_parse_pattern(priv, pattern, flow, error);
	if (ret)
		return ret;

	return mrvl_flow_parse_actions(priv, actions, flow, error);
}
/**
 * Parse flow attribute, pattern and actions.
 *
 * @param priv Pointer to the port's private data.
 * @param attr Pointer to the flow attribute.
 * @param pattern Pointer to the flow pattern.
 * @param actions Pointer to the flow actions.
 * @param flow Pointer to the flow.
 * @param error Pointer to the flow error.
 * @returns 0 on success, negative value otherwise.
 */
Parse flow attribute, pattern and actions.
@param priv Pointer to the port's private data.
@param attr Pointer to the flow attribute.
@param pattern Pointer to the flow pattern.
@param actions Pointer to the flow actions.
@param flow Pointer to the flow.
@param error Pointer to the flow error.
@returns 0 on success, negative value otherwise.
Parse flow attribute pattern and actions . @param priv Pointer to the port ' s private data . @param attr Pointer to the flow attribute . @param pattern Pointer to the flow pattern . @param actions Pointer to the flow actions . @param flow Pointer to the flow . @param error Pointer to the flow error . @returns 0 on success negative value otherwise .
static int
mrvl_flow_parse(struct mrvl_priv *priv, const struct rte_flow_attr *attr,
		const struct rte_flow_item pattern[],
		const struct rte_flow_action actions[],
		struct rte_flow *flow,
		struct rte_flow_error *error)
{
	int ret;
	ret = mrvl_flow_parse_attr(priv, attr, flow, error);
	if (ret)
		return ret;
	ret = mrvl_flow_parse_pattern(priv, pattern, flow, error);
	if (ret)
		return ret;
	return mrvl_flow_parse_actions(priv, actions, flow, error);
}
static int mrvl_flow_parse ( struct mrvl_priv * priv , const struct rte_flow_attr * attr , const struct rte_flow_item pattern [ ] , const struct rte_flow_action actions [ ] , struct rte_flow * flow , struct rte_flow_error * error ) { int ret ; ret = mrvl_flow_parse_attr ( priv , attr , flow , error ) ; if ( ret ) return ret ; ret = mrvl_flow_parse_pattern ( priv , pattern , flow , error ) ; if ( ret ) return ret ; return mrvl_flow_parse_actions ( priv , actions , flow , error ) ; }
Parse flow attribute, pattern and actions.
Parse flow attribute pattern and actions .