[dpdk-dev] [PATCH v6 10/17] net/i40e: add flow create function

Ferruh Yigit ferruh.yigit at intel.com
Thu Jan 5 18:47:03 CET 2017


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.xing at 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.

<...>


More information about the dev mailing list