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

2018-10-26 Thread David Ahern
On 10/26/18 3:22 PM, Jeff Barnhill wrote: > @@ -275,6 +356,13 @@ int __ipv6_dev_ac_inc(struct inet6_dev *idev, const > struct in6_addr *addr) > err = -ENOMEM; > goto out; > } > + err = ipv6_add_acaddr_hash(dev_net(idev->dev), addr); > + if (err) { > +

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

2018-10-26 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