]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Apr 2023 14:55:23 +0000 (16:55 +0200)
commitf390e5f3fb1f29d53d595a1a47b06c807f42183c
treee47f4421a9b7c3ce42c4f66428983c1c3914224f
parentbc5172c28d5c190116a9890cbae160af86b331a5
ice: Reset FDIR counter in FDIR init stage

[ Upstream commit 83c911dc5e0e8e6eaa6431c06972a8f159bfe2fc ]

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: 94ac99f4f0f9 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/intel/ice/ice_virtchnl_fdir.c