]> 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)
commit1e3db0a0fe2680cdacee79cc0856f8aae95a4b3b
treeec68db9a13a743fafe2f3db3877226f7e5bd2cce
parentbc546d90acb097125934c347cc0e1c51d2c3b6ea
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