]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
ipv6: avoid cache line dirtying in ipv6_dev_get_saddr()
authorEric Dumazet <edumazet@google.com>
Sun, 8 Oct 2017 02:30:28 +0000 (19:30 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 9 Oct 2017 04:16:31 +0000 (21:16 -0700)
commitcc429c8f6fa7cc1c9109bb4a1ad63a6d1f232f0e
treee7e9727cc24309c0a4e667920f8cba37186d4b22
parentf59c031e9134bb16c38980196a73d7ba40979baa
ipv6: avoid cache line dirtying in ipv6_dev_get_saddr()

By extending the rcu section a bit, we can avoid these
very expensive in6_ifa_put()/in6_ifa_hold() calls
done in __ipv6_dev_get_saddr() and ipv6_dev_get_saddr()

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/addrconf.c