Skip to content
Commit 391d28c0 authored by Simei Su's avatar Simei Su Committed by Greg Kroah-Hartman
Browse files

ice: fix wrong fallback logic for FDIR

[ Upstream commit b4a01ace ]

When adding a FDIR filter, if ice_vc_fdir_set_irq_ctx returns failure,
the inserted fdir entry will not be removed and if ice_vc_fdir_write_fltr
returns failure, the fdir context info for irq handler will not be cleared
which may lead to inconsistent or memory leak issue. This patch refines
failure cases to resolve this issue.

Fixes: 1f7ea1cd

 ("ice: Enable FDIR Configure for AVF")
Signed-off-by: default avatarSimei Su <simei.su@intel.com>
Tested-by: default avatarRafal Romanowski <rafal.romanowski@intel.com>
Signed-off-by: default avatarTony Nguyen <anthony.l.nguyen@intel.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent e215928a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment