On 1/5/2017 3:46 PM, Beilei Xing wrote: > This patch adds i40e_flow_create function to create a > rule. It will check if a flow matches ethertype filter > or flow director filter or tunnel filter, if the flow > matches some kind of filter, then set the filter to HW. > > Signed-off-by: Beilei Xing <beilei.x...@intel.com> > ---
<...> > > /* > + * Struct to store flow created. > + */ > +struct i40e_flow { > + TAILQ_ENTRY(i40e_flow) node; > + enum rte_filter_type filter_type; > + void *rule; > +}; It is possible to define this struct as "struct rte_flow", this prevents repetitive casting between rte_flow and i40e_flow. It is your call. <...>