]> asedeno.scripts.mit.edu Git - linux.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)
commit1cf844c747d5424abe76f7b599c00b1ac17d3fce
treeec68db9a13a743fafe2f3db3877226f7e5bd2cce
parentcc5c073a693fa6ed7a207b0436114f68cce72434
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