OSDN Git Service

ice: Reset FDIR counter in FDIR init stage
authorLingyu Liu <lingyu.liu@intel.com>
Tue, 28 Mar 2023 10:49:11 +0000 (10:49 +0000)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Tue, 4 Apr 2023 15:34:52 +0000 (08:34 -0700)
commit83c911dc5e0e8e6eaa6431c06972a8f159bfe2fc
treefefa2a6a1e7cb4fcf4f8a834b94c13ca9279ef22
parentb4a01ace20f5c93c724abffc0a83ec84f514b98d
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@intel.com>
Signed-off-by: Lingyu Liu <lingyu.liu@intel.com>
Tested-by: Rafal Romanowski <rafal.romanowski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_virtchnl_fdir.c