]> 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)
commit5fdb39cfd3d715c0ebf5f69975299a8519a27616
treed677d96aa377aea0f43abad32fdfc9a446698698
parentb7fa6a42636777808c56e991a0e76d8c36ebc6c1
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