net/ipv6: Add gfp_flags to route add functions
authorDavid Ahern <dsahern@gmail.com>
Wed, 18 Apr 2018 00:33:22 +0000 (17:33 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Apr 2018 03:41:17 +0000 (23:41 -0400)
commitacb54e3cba404c20f07733f3222c0418a7724a5b
tree015cc63067a3cf9788317f597b1cd88601bd0d67
parentf8a1b43b709d8ef33a8de2f8f35095b4a4413713
net/ipv6: Add gfp_flags to route add functions

Most FIB entries can be added using memory allocated with GFP_KERNEL.
Add gfp_flags to ip6_route_add and addrconf_dst_alloc. Code paths that
can be reached from the packet path (e.g., ndisc and autoconfig) or
atomic notifiers use GFP_ATOMIC; paths from user context (adding
addresses and routes) use GFP_KERNEL.

Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip6_route.h
net/ipv6/addrconf.c
net/ipv6/anycast.c
net/ipv6/route.c