FAILED: patch "[PATCH] net: openvswitch: conntrack: remove 'add_helper' dead code" failed to apply to 6.6-stable tree
Subsystems (3)
[email protected]
maintainerThe patch below does not apply to the 6.6-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.
To reproduce the conflict and resubmit, you may use the following commands:
git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.6.y
git checkout FETCH_HEAD
git cherry-pick -x 5e6c14dd42a1c1fe938e573dc6c9098145b2b0c4
# <resolve conflicts, build, test, etc.>
git commit -s
git send-email --to '<[email protected]>' --in-reply-to '2026092926-sweep-chaste-9989@gregkh' --subject-prefix 'PATCH 6.6.y' 'HEAD^..'
Possible dependencies:
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
From 5e6c14dd42a1c1fe938e573dc6c9098145b2b0c4 Mon Sep 17 00:00:00 2001
From: Ilya Maximets <[email protected]>
Date: Mon, 21 Sep 2026 16:55:44 +0200
Subject: [PATCH] net: openvswitch: conntrack: remove 'add_helper' dead code
This variable can only become 'true' when the connection is not confirmed, but it is only checked when it is confirmed. So, it can be treated as being always false and just removed.
net/openvswitch/conntrack.c +2 -8
@@ -778,8 +778,6 @@ static int __ovs_ct_lookup(struct net *net, struct sw_flow_key *key, ct =nf_ct_get (skb, &ctinfo);if (ct) { -bool add_helper = false; -/* Packets starting a new connection must be NATted before the * helper, so that the helper knows about the NAT. We enforce * this by delaying both NAT and helper calls for unconfirmed
@@ -811,7 +809,6 @@ static int __ovs_ct_lookup(struct net *net, struct sw_flow_key *key, GFP_ATOMIC);if (err)return err; - add_helper = true;/* helper installed, add seqadj if NAT is required */ if (info->nat && !nfct_seqadj (ct)) {
@@ -821,13 +818,10 @@ static int __ovs_ct_lookup(struct net *net, struct sw_flow_key *key, }/* Call the helper only if: -* - nf_conntrack_in() was executed above ("!cached") or a -* helper was just attached ("add_helper") for a confirmed -* connection, or +* - nf_conntrack_in() was executed above ("!cached"), or * - When committing an unconfirmed connection. */ -if ((nf_ct_is_confirmed (ct) ? !cached || add_helper : - info->commit)) { +if ((nf_ct_is_confirmed (ct) ? !cached : info->commit)) {int err =nf_ct_helper (skb, ct, ctinfo, info->family); err =verdict_to_errno (err);