LVS
lvs-devel
Google
 
Web LinuxVirtualServer.org

Re: [PATCH RFC nf 2/2] ipvs: adjust double hashing when fwd method chang

To: tt roxy <roxy520tt@xxxxxxxxx>
Subject: Re: [PATCH RFC nf 2/2] ipvs: adjust double hashing when fwd method changes
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: Wed, 1 Jul 2026 00:40:24 +0300 (EEST)
        Hello,

On Tue, 30 Jun 2026, Julian Anastasov wrote:

> Synced conns can be created with one forwarding method
> and later updated with different one after the dest
> server is configured. This needs adjusting the hashing
> for node hn1 because only MASQ supports double hashing.
> 
> Modify conn_tab_lock() to support seeking for hash node
> hn0 together with adding for hn1. By this way we can
> safely modify the forwarding method and hn1.hash_key
> under bucket lock for the first node hn0. The forwarding
> method is also protected by cp->lock as it is part of
> cp->flags.
> 
> Reported-by: Zhiling Zou <roxy520tt@xxxxxxxxx>
> Link: 
> https://lore.kernel.org/lvs-devel/1b914f41d725bc064c9ba9830dc8169329737270.1782540466.git.roxy520tt@xxxxxxxxx/
> Fixes: f20c73b0460d ("ipvs: use more keys for connection hashing")
> Signed-off-by: Julian Anastasov <ja@xxxxxx>

        Ignore this patch, it has many issues to fix,
I'll send v2 after 24 hours.

Regards

--
Julian Anastasov <ja@xxxxxx>



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