[dpdk-dev] [PATCH v2 06/11] net/e1000: parse ethertype filter
    Lu, Wenzhuo 
    wenzhuo.lu at intel.com
       
    Mon Jun  5 05:13:55 CEST 2017
    
    
  
Hi Wei,
> -----Original Message-----
> From: Zhao1, Wei
> Sent: Friday, June 2, 2017 2:36 PM
> To: dev at dpdk.org
> Cc: Lu, Wenzhuo; Zhao1, Wei
> Subject: [PATCH v2 06/11] net/e1000: parse ethertype filter
> 
> check if the rule is a ethertype rule, and get the ethertype info.
> 
> Signed-off-by: Wei Zhao <wei.zhao1 at intel.com>
> ---
>  drivers/net/e1000/igb_flow.c | 280
> +++++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 280 insertions(+)
> +
> +	/* The first non-void item should be MAC. */
> +	item = pattern + index;
> +	while (item->type == RTE_FLOW_ITEM_TYPE_VOID) {
> +		index++;
> +		item = pattern + index;
> +	}
You've created a macro to do it in the previous patch, why not use the macro? The same below.
    
    
More information about the dev
mailing list