]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: Make fib6_nh optional at the end of fib6_info
authorDavid Ahern <dsahern@gmail.com>
Thu, 23 May 2019 03:27:59 +0000 (20:27 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 24 May 2019 20:26:44 +0000 (13:26 -0700)
commite2cda1a5303688c893d683cfa6ef002c515ccc2d
treeec68db9a13a743fafe2f3db3877226f7e5bd2cce
parent1ab5dd87b7b2a363538d3586eafa21af357b26ac
ipv6: Make fib6_nh optional at the end of fib6_info

Move fib6_nh to the end of fib6_info and make it an array of
size 0. Pass a flag to fib6_info_alloc indicating if the
allocation needs to add space for a fib6_nh.

The current code path always has a fib6_nh allocated with a
fib6_info; with nexthop objects they will be separate.

Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
include/net/ip6_fib.h
include/net/ip6_route.h
net/ipv6/addrconf.c
net/ipv6/ip6_fib.c
net/ipv6/ndisc.c
net/ipv6/route.c