]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: Create init helper for fib_nh
authorDavid Ahern <dsahern@gmail.com>
Thu, 28 Mar 2019 03:53:48 +0000 (20:53 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 29 Mar 2019 17:48:03 +0000 (10:48 -0700)
commitbb002039fac375de7312671fa865576e90df606b
treed677d96aa377aea0f43abad32fdfc9a446698698
parentbb94c10e8b9f296e42e43f2c282c5cf582dd4530
ipv4: Create init helper for fib_nh

Consolidate the fib_nh initialization which is duplicated between
fib_create_info for single path and fib_get_nhs for multipath.
Export the helper to allow for use with nexthop objects in the
future.

Signed-off-by: David Ahern <dsahern@gmail.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip_fib.h
net/ipv4/fib_semantics.c