net: fib6: convert cfg metric to u32 outside of table write lock
authorFlorian Westphal <fw@strlen.de>
Mon, 5 Jan 2015 22:57:44 +0000 (23:57 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 6 Jan 2015 03:55:24 +0000 (22:55 -0500)
commite715b6d3a5ef55834778d49224e60e8ccb5bf45f
tree61b0e9a29119fbe6062956f9429711f21eb1cefb
parent0409c9a5a7546043d32e8c46df0dcaf65f97f659
net: fib6: convert cfg metric to u32 outside of table write lock

Do the nla validation earlier, outside the write lock.

This is needed by followup patch which needs to be able to call
request_module (which can sleep) if needed.

Joint work with Daniel Borkmann.

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip6_fib.h
net/ipv6/ip6_fib.c
net/ipv6/route.c