Re: [PATCH net] net/ipv6: Add anycast addresses to a global hashtable

2018-10-23 Thread Jeff Barnhill
Thanks! You are right. I mis-understood net->ifindex. I think I need to instead hold the net pointer in the new ipv6_ac_addrlist structure. Do you see a problem with that? On Mon, Oct 22, 2018 at 10:26 PM Eric Dumazet wrote: > > > > On 10/22/2018 07:12 PM, Jeff Barnhill wrote: > > icmp6_send() fu

Re: [PATCH net] net/ipv6: Add anycast addresses to a global hashtable

2018-10-22 Thread Eric Dumazet
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 anyc

[PATCH net] net/ipv6: Add anycast addresses to a global hashtable

2018-10-22 Thread Jeff Barnhill
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 significa