[Intel-wired-lan] [PATCH net V3] ice: Reset FDIR counter in FDIR init stage

Romanowski, Rafal rafal.romanowski at intel.com
Mon Apr 3 13:17:02 UTC 2023


> -----Original Message-----
> From: Intel-wired-lan <intel-wired-lan-bounces at osuosl.org> On Behalf Of
> Lingyu Liu
> Sent: wtorek, 28 marca 2023 12:49
> To: intel-wired-lan at lists.osuosl.org
> Subject: [Intel-wired-lan] [PATCH net V3] ice: Reset FDIR counter in FDIR init
> stage
> 
> Reset the FDIR counters when FDIR inits. Without this patch, when VF
> initializes or resets, all the FDIR counters are not cleaned, which may cause
> unexpected behaviors for future FDIR rule create (e.g., rule conflict).
> 
> Fixes: 1f7ea1cd6a37 ("ice: Enable FDIR Configure for AVF")
> Signed-off-by: Junfeng Guo <junfeng.guo at intel.com>
> Signed-off-by: Lingyu Liu <lingyu.liu at intel.com>
> ---
> v2: change commit message to apply more to a kernel use
> v3: simplify commit message
> ---
>  .../net/ethernet/intel/ice/ice_virtchnl_fdir.c   | 16 ++++++++++++++++
>  1 file changed, 16 insertions(+)
> 
> diff --git a/drivers/net/ethernet/intel/ice/ice_virtchnl_fdir.c
> b/drivers/net/ethernet/intel/ice/ice_virtchnl_fdir.c
> index 4d007d8c2540..daa6a1e894cf 100644
> --- a/drivers/net/ethernet/intel/ice/ice_virtchnl_fdir.c
> +++ b/drivers/net/ethernet/intel/ice/ice_virtchnl_fdir.c
> @@ -541,6 +541,21 @@ static void ice_vc_fdir_rem_prof_all(struct ice_vf


Tested-by: Rafal Romanowski <rafal.romanowski at intel.com>





More information about the Intel-wired-lan mailing list