From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5E94819CD1D; Thu, 30 Jul 2026 15:38:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785425890; cv=none; b=Mh/YGb+HBE4hc77PbHmE5tY5gn8qLn0ACxEaQo0u+xBOwd1dfzhEeiIpz+WW4ws1xh1MZQDNbScNXD+8jl+MAxy4/L/AtolDG+gQVnXtGj4VhyO4BB+hulGgtWUMokHk6f7r9GI7DUSKsiPG6Jh4Y+z9PKn7KGymYLD77E7kkTE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785425890; c=relaxed/simple; bh=dlgcTxdrdp3M1yd5oqKVHR++ijUbLtGS3HYGgcy/xEk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=N1Ui3Cpxw/fpG4mZVy6lEunOHILxFxeq1GzzkOQfx3wJs4lo+bcXZiyOxdw9dR4GSOjM/KTxTrmDa6DIaKhWG7zzOtpa4bMgiXQDwFs0Uh5X4Zn2v0yy+JcNPZM1t1l3xADwG9OVESknL82G7pofB8q/buWRLQsPy7nmjSbkaI0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=iEO6xEgj; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="iEO6xEgj" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C2DFC1F00A3A; Thu, 30 Jul 2026 15:38:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1785425889; bh=NAqTTBcTisXH6lKNeARco2fnztlnX4HY3Pp03ociBS4=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=iEO6xEgjLJ2crqz5Xl4tJiPHrM8Bum0RsLNAYj0Z1myHWWjmOzaLxd8ri1etOjNCs 6IFHtig1k6fF9ejU4HtthGdm1TZ6VluteQu9Or8onzt8VY+oYeGIDZJ6z/twS/XhfB CtClgpRjRYG/sB08XH7sQRh8SZBcFtIZTiiKnqhY= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Rohan G Thomas , Nazim Amirul , Maxime Chevallier , Jakub Raczynski , Paolo Abeni , Sasha Levin Subject: [PATCH 6.12 225/602] net: stmmac: reset residual action in L3L4 filters on delete Date: Thu, 30 Jul 2026 16:10:17 +0200 Message-ID: <20260730141440.687814853@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260730141435.976815864@linuxfoundation.org> References: <20260730141435.976815864@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Nazim Amirul [ Upstream commit a448f821289934b961dd9d8d0beb006cc8937ba2 ] When deleting an L3/L4 flower filter entry, the action field is not reset. If a filter was previously configured with a drop action, that action may persist and affect subsequent filter configurations unintentionally. Clear the action field when the filter entry is deleted. Fixes: 425eabddaf0f ("net: stmmac: Implement L3/L4 Filters using TC Flower") Signed-off-by: Rohan G Thomas Signed-off-by: Nazim Amirul Reviewed-by: Maxime Chevallier Link: https://patch.msgid.link/20260714023716.29865-5-muhammad.nazim.amirul.nazle.asmade@altera.com Reviewed-by: Jakub Raczynski Signed-off-by: Paolo Abeni Signed-off-by: Sasha Levin --- drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c index f0874b20b0a2cd..49f133dec810d8 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c @@ -661,6 +661,7 @@ static int tc_del_flow(struct stmmac_priv *priv, entry->in_use = false; entry->cookie = 0; entry->is_l4 = false; + entry->action = 0; return ret; } -- 2.53.0