[PATCH v2] net/ice: fix raw flow input pattern value change in FDIR

Guo, Junfeng junfeng.guo at intel.com
Thu Apr 14 03:27:04 CEST 2022



> -----Original Message-----
> From: Xu, Ting <ting.xu at intel.com>
> Sent: Monday, March 28, 2022 09:49
> To: dev at dpdk.org
> Cc: Guo, Junfeng <junfeng.guo at intel.com>; Xu, Ting
> <ting.xu at intel.com>; stable at dpdk.org; Yang, Qiming
> <qiming.yang at intel.com>; Zhang, Qi Z <qi.z.zhang at intel.com>
> Subject: [PATCH v2] net/ice: fix raw flow input pattern value change in
> FDIR
> 
> When parsing raw flow pattern in FDIR, the input parameter spec and
> mask are used directly and the original value will be changed. It
> will cause error if these values are used in other functions. In this
> patch, temporary variables are created to store the spec and mask.
> 
> Fixes: 25be39cc1760 ("net/ice: enable protocol agnostic flow offloading
> in FDIR")
> 
> Cc: stable at dpdk.org
> 
> Signed-off-by: Ting Xu <ting.xu at intel.com>
> ---
>  drivers/net/ice/ice_fdir_filter.c | 25 +++++++++++++++++++------
>  1 file changed, 19 insertions(+), 6 deletions(-)
> 
> --
> 2.17.1

Acked-by: Junfeng Guo <junfeng.guo at intel.com>

Regards,
Junfeng Guo


More information about the stable mailing list