On 12/2/2016 10:43 AM, Wei Zhao wrote: > From: wei zhao1 <wei.zh...@intel.com> > > This patch adds a function to create the flow directory filter. > > Signed-off-by: wei zhao1 <wei.zh...@intel.com> > Signed-off-by: Wenzhuo Lu <wenzhuo...@intel.com>
<...> > +/** > + * Create or destroy a flow rule. > + * Theorically one rule can match more than one filters. > + * We will let it use the filter which it hitt first. > + * So, the sequence matters. > + */ > +struct ixgbe_flow * > +ixgbe_flow_create(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) > +{ > + int ret; > + struct rte_eth_ntuple_filter ntuple_filter; <...> > + error->type = ret; This also returns same ICC error, there are a few more same usage: .../drivers/net/ixgbe/ixgbe_ethdev.c(9764): error #188: enumerated type mixed with another type error->type = ret; ^