LVS
lvs-devel
Google
 
Web LinuxVirtualServer.org

[PATCH RFC nf 1/2] ipvs: do not propagate one_packet flag to hashed conn

To: tt roxy <roxy520tt@xxxxxxxxx>
Subject: [PATCH RFC nf 1/2] ipvs: do not propagate one_packet flag to hashed conns
Cc: Ren Wei <n05ec@xxxxxxxxxx>, lvs-devel@xxxxxxxxxxxxxxx, netfilter-devel@xxxxxxxxxxxxxxx, yuantan098@xxxxxxxxx, yifanwucs@xxxxxxxxx, tomapufckgml@xxxxxxxxx, bird@xxxxxxxxxx
From: Julian Anastasov <ja@xxxxxx>
Date: Tue, 30 Jun 2026 22:36:45 +0300
Signed-off-by: Julian Anastasov <ja@xxxxxx>
---

 This patch is just to help the testing of both patches. You will
 replace it with your own patch that should allow the second
 patch to be applied. Let me know if you see any problems.

 net/netfilter/ipvs/ip_vs_conn.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/net/netfilter/ipvs/ip_vs_conn.c b/net/netfilter/ipvs/ip_vs_conn.c
index e76a73d183d5..805ca1fc3bc8 100644
--- a/net/netfilter/ipvs/ip_vs_conn.c
+++ b/net/netfilter/ipvs/ip_vs_conn.c
@@ -1014,6 +1014,9 @@ ip_vs_bind_dest(struct ip_vs_conn *cp, struct ip_vs_dest 
*dest)
        flags = cp->flags;
        /* Bind with the destination and its corresponding transmitter */
        if (flags & IP_VS_CONN_F_SYNC) {
+               /* Synced conns are hashed, so they can not get this flag */
+               conn_flags &= ~IP_VS_CONN_F_ONE_PACKET;
+
                /* if the connection is not template and is created
                 * by sync, preserve the activity flag.
                 */
-- 
2.54.0




<Prev in Thread] Current Thread [Next in Thread>