[dpdk-dev] [PATCH 11/18] net/ixgbe: parse n-tuple filter

Ferruh Yigit ferruh.yigit at intel.com
Tue Dec 20 18:23:23 CET 2016


On 12/2/2016 10:43 AM, Wei Zhao wrote:
> From: wei zhao1 <wei.zhao1 at intel.com>
> 
> Add rule validate function and check if the rule is a n-tuple rule,
> and get the n-tuple info.
> 
> Signed-off-by: wei zhao1 <wei.zhao1 at intel.com>
> Signed-off-by: Wenzhuo Lu <wenzhuo.lu at intel.com>
> ---
>  drivers/net/ixgbe/ixgbe_ethdev.c | 349 +++++++++++++++++++++++++++++++++++++++
>  1 file changed, 349 insertions(+)

<...>

> + */
> +static enum rte_flow_error_type
> +cons_parse_ntuple_filter(const struct rte_flow_attr *attr,
> +			 const struct rte_flow_item pattern[],
> +			 const struct rte_flow_action actions[],
> +			 struct rte_eth_ntuple_filter *filter)
> +{

<...>

> +
> +	return 0;

This gives build error [1] with ICC, there are a few same usage, return
type is enum but returning an int.

[1]
/tmp/dpdk_maintain/ixgbe_flow/dpdk/drivers/net/ixgbe/ixgbe_ethdev.c(8432):
error #188: enumerated type mixed with another type
        return 0;
               ^



More information about the dev mailing list