[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <a95a1977-edbc-715c-ee32-7a6fcff277b0@gmail.com>
Date: Mon, 22 Oct 2018 19:26:28 -0700
From: Eric Dumazet <eric.dumazet@...il.com>
To: Jeff Barnhill <0xeffeff@...il.com>, netdev@...r.kernel.org
Cc: davem@...emloft.net, kuznet@....inr.ac.ru, yoshfuji@...ux-ipv6.org
Subject: Re: [PATCH net] net/ipv6: Add anycast addresses to a global hashtable
On 10/22/2018 07:12 PM, Jeff Barnhill wrote:
> icmp6_send() function is expensive on systems with a large number of
> interfaces. Every time it’s called, it has to verify that the source
> address does not correspond to an existing anycast address by looping
> through every device and every anycast address on the device. This can
> result in significant delays for a CPU when there are a large number of
> neighbors and ND timers are frequently timing out and calling
> neigh_invalidate().
>
> Add anycast addresses to a global hashtable to allow quick searching for
> matching anycast addresses. This is based on inet6_addr_lst in addrconf.c.
>
I do not see this patch being netns aware ?
Also I believe you misunderstood what was stored in net->ifindex
You can look at dev_new_index() for what I mean.
Powered by blists - more mailing lists