net: fib: move metrics parsing to a helper
authorFlorian Westphal <fw@strlen.de>
Mon, 31 Aug 2015 13:58:44 +0000 (15:58 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 31 Aug 2015 19:34:00 +0000 (12:34 -0700)
commit6cf9dfd3bd62edfff69f11c0f111bc261166e4c7
treea19d1ff89446023388fcd70c3dcb2525ccc7404e
parent87583ebb9f6ea6dc7f8ef167b815656787e429fc
net: fib: move metrics parsing to a helper

fib_create_info() is already quite large, so before adding more
code to the metrics section move that to a helper, similar to
ip6_convert_metrics.

Suggested-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/fib_semantics.c