summaryrefslogtreecommitdiffstats
path: root/ipc
diff options
context:
space:
mode:
authorDavid Ahern <dsahern@gmail.com>2019-04-02 14:11:55 -0700
committerDavid S. Miller <davem@davemloft.net>2019-04-03 21:50:20 -0700
commiteba618abacade71669eb67c3360eecfee810cc88 (patch)
treecfc98d4a5fefbcc07d586bcec602a9853bae2aa0 /ipc
parent0af7e7c128eb33f2dc16ed088ced00675785d628 (diff)
downloadlinux-eba618abacade71669eb67c3360eecfee810cc88.tar.gz
linux-eba618abacade71669eb67c3360eecfee810cc88.tar.bz2
linux-eba618abacade71669eb67c3360eecfee810cc88.zip
ipv4: Add fib_nh_common to fib_result
Most of the ipv4 code only needs data from fib_nh_common. Add fib_nh_common selection to fib_result and update users to use it. Right now, fib_nh_common in fib_result will point to a fib_nh struct that is embedded within a fib_info: fib_info --> fib_nh fib_nh ... fib_nh ^ fib_result->nhc ----+ Later, nhc can point to a fib_nh within a nexthop struct: fib_info --> nexthop --> fib_nh ^ fib_result->nhc ---------------+ or for a nexthop group: fib_info --> nexthop --> nexthop --> fib_nh nexthop --> fib_nh ... nexthop --> fib_nh ^ fib_result->nhc ---------------------------+ In all cases nhsel within fib_result will point to which leg in the multipath route is used. Signed-off-by: David Ahern <dsahern@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions