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>
Showing
- drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c 16 additions, 15 deletionsdrivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
- include/net/ip6_fib.h 3 additions, 3 deletionsinclude/net/ip6_fib.h
- include/net/ip6_route.h 2 additions, 2 deletionsinclude/net/ip6_route.h
- net/ipv6/addrconf.c 3 additions, 3 deletionsnet/ipv6/addrconf.c
- net/ipv6/ip6_fib.c 11 additions, 7 deletionsnet/ipv6/ip6_fib.c
- net/ipv6/ndisc.c 4 additions, 4 deletionsnet/ipv6/ndisc.c
- net/ipv6/route.c 67 additions, 67 deletionsnet/ipv6/route.c
Loading
Please register or sign in to comment