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 374BC468C08; Thu, 30 Jul 2026 16:04:48 +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=1785427489; cv=none; b=BNBWWngg4mengFdNbTvidBYf4P5CMkEriDczg0arJeQxCHvZGzIua0GbsnFeghv4Z87vJqzslU47uFeLrDKlxsLoQBpgyIdrVlh7KC/UydYI27YQj9mcwRPbSDe8vSANG5efzVZhW0lVRzopozg8i+uBG12fuaR/F+cZb+sK6mk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785427489; c=relaxed/simple; bh=K+TIy7XFPg5RYkhiihbwMrgDvx8rwXSMFaIyiUQ13sw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=k49xI7MkUAZyJneJ53PJri1hgSbcoqyn5hkgaZMiDdPXcWQ19MNWqXdvncGHApbYW+xOIPxiHZYQ/FH2gJ6YnIy4GaDJJyOFa036wv6RasRIGBzqvphxYog5rE6gqNglxMsS75svK1tznA57oj3EDEZvh4wXt8IbTvGKhKCfh1k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=s3oj8afb; 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="s3oj8afb" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 938E31F00A3A; Thu, 30 Jul 2026 16:04:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1785427488; bh=NQLw2PXmO2AqZO/+Ehg/zk8zEbp4kVVPw8tVfKGn8/U=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=s3oj8afb5alJq4e2M0Rr/8oI5pJ6Wp3YM7k+L9cuYRJ26ryX06m5tRgep68spHnVO nL1jDsf0Dxr7ppoK4HP4+iqCor78ipBYFo8jAm8i2r4I/3F6am/HaVzeU+mGDJ4fbw IqGuZYRkP6glhA6D/P6tIPmxxewxv2vd+wbIhFRM= 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.6 189/484] net: stmmac: reset residual action in L3L4 filters on delete Date: Thu, 30 Jul 2026 16:11:26 +0200 Message-ID: <20260730141427.573571903@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260730141423.392222816@linuxfoundation.org> References: <20260730141423.392222816@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.6-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 8eef993c47e968..9b58a91cce7e4d 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c @@ -671,6 +671,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