![]() |
lvs-devel
|
| To: | tt roxy <roxy520tt@xxxxxxxxx> |
|---|---|
| Subject: | [PATCH RFC nf v2 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: | Thu, 2 Jul 2026 00:25:19 +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 cb36641f8d1c..c916eedd69c1 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> |
|---|---|---|
| ||
| Previous by Date: | [PATCH RFC nf v2 2/2] ipvs: adjust double hashing when fwd method changes, Julian Anastasov |
|---|---|
| Next by Date: | [PATCH net v2] ipvs: fix PMTU for GUE/GRE tunnel ICMP errors, Yizhou Zhao |
| Previous by Thread: | [PATCH net] ipvs: fix PMTU for GUE/GRE tunnel ICMP errors, Yizhou Zhao |
| Next by Thread: | [PATCH RFC nf v2 2/2] ipvs: adjust double hashing when fwd method changes, Julian Anastasov |
| Indexes: | [Date] [Thread] [Top] [All Lists] |