[dpdk-dev] [PATCH] net/ice: fix wrong GTP-U fdir profile

Xing, Beilei beilei.xing at intel.com
Fri Jan 17 08:07:56 CET 2020



> -----Original Message-----
> From: Zhang, Qi Z
> Sent: Friday, January 17, 2020 2:21 PM
> To: Cao, Yahui <yahui.cao at intel.com>; Xing, Beilei <beilei.xing at intel.com>
> Cc: dev at dpdk.org; Zhang, Qi Z <qi.z.zhang at intel.com>; stable at dpdk.org
> Subject: [PATCH] net/ice: fix wrong GTP-U fdir profile
> 
> A GTP-U fdir profile should be regarded as a tunnel type, or the profile target
> to inner IPv4 will also cover inner IPv6 packet type due to some side effect.
> 
> Fixes: efc16c621415 ("net/ice: support flow director GTPU tunnel")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Qi Zhang <qi.z.zhang at intel.com>
> ---
>  drivers/net/ice/ice_fdir_filter.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/net/ice/ice_fdir_filter.c b/drivers/net/ice/ice_fdir_filter.c
> index fa8707455..4c5ddfbdb 100644
> --- a/drivers/net/ice/ice_fdir_filter.c
> +++ b/drivers/net/ice/ice_fdir_filter.c
> @@ -987,6 +987,7 @@ ice_fdir_input_set_conf(struct ice_pf *pf, enum
> ice_fltr_ptype flow,
>  		ICE_FLOW_SET_HDRS(seg, ICE_FLOW_SEG_HDR_GTPU_EH |
>  				       ICE_FLOW_SEG_HDR_GTPU_IP |
>  				  ICE_FLOW_SEG_HDR_IPV4);
> +		is_tunnel = true;

I think we should fix in ice_fdir_is_tunnel_profile function.

BR,
Beilei

>  		break;
>  	default:
>  		PMD_DRV_LOG(ERR, "not supported filter type.");
> --
> 2.13.6



More information about the dev mailing list