[PATCH] net/i40e: remove redundant judgment in fdir parse
    Zhang, Qi Z 
    qi.z.zhang at intel.com
       
    Thu Dec 14 03:12:29 CET 2023
    
    
  
> -----Original Message-----
> From: Kaiwen Deng <kaiwenx.deng at intel.com>
> Sent: Friday, November 24, 2023 3:01 PM
> To: dev at dpdk.org
> Cc: stable at dpdk.org; Yang, Qiming <qiming.yang at intel.com>; Zhou, YidingX
> <yidingx.zhou at intel.com>; Deng, KaiwenX <kaiwenx.deng at intel.com>; Zhang,
> Yuying <yuying.zhang at intel.com>; Xing, Beilei <beilei.xing at intel.com>; Wu,
> Jingjing <jingjing.wu at intel.com>
> Subject: [PATCH] net/i40e: remove redundant judgment in fdir parse
> 
> if (eth_spec && eth_mask &&
> 	       next_type == RTE_FLOW_ITEM_TYPE_END) {
>             ...
>             if (next_type == RTE_FLOW_ITEM_TYPE_VLAN || ...) {
>             ...
>             }
> ...
> }
> 
> Clearly, that condition in the inner "if" is always "false".
> 
> This commit will remove the redundant judgment.
> 
> Fixes: 7d83c152a207 ("net/i40e: parse flow director filter")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Kaiwen Deng <kaiwenx.deng at intel.com>
Acked-by: Qi Zhang <qi.z.zhang at intel.com>
Applied to dpdk-next-net-intel.
Thanks
Qi
    
    
More information about the dev
mailing list