From: Julian Anastasov Subject: Re: [patch v2] ipvs: IPv6 tunnel mode Date: Fri, 1 Oct 2010 10:48:49 +0300 (EEST) Message-ID: References: <20100926133313.GA30560@verge.net.au> <1285767027.5670.51.camel@seasc0214> <1285913303.5670.122.camel@seasc0214> Mime-Version: 1.0 Return-path: In-Reply-To: <1285913303.5670.122.camel@seasc0214> Sender: lvs-devel-owner@vger.kernel.org List-ID: Content-Type: TEXT/PLAIN; charset="us-ascii"; format="flowed" Content-Transfer-Encoding: 7bit To: Hans Schillstrom Cc: Simon Horman , "lvs-devel@vger.kernel.org" , Julius Volz Hello, On Fri, 1 Oct 2010, Hans Schillstrom wrote: >>> - Leave it as is ? >> >> This 3th option is better for the moment. I think, >> saddr is selected correctly, see ip6_dst_lookup() and >> ip6_dst_lookup_tail() in net/ipv6/ip6_output.c >> But if you think using ipv6_addr_copy(&iph->daddr, &cp->daddr.in6); >> is working then feel free to post a patch on top of >> the previous patch. Because other code in kernel uses >> resulting fl.fl6_dst, not rt6i_dst. > > I prefer fl.fl6_dst right now since rt6i_dst gives a bad destination in > many cases. > > I will do some more testing before posting the patch. ok, but note that now 'fl' is hidden in function and not cached. I think fl.fl6_dst is read-only, so it should contain cp->daddr.in6 in all cases. Regards -- Julian Anastasov