On Wed, Mar 27, 2019 at 08:53:52PM -0700, David Ahern wrote: > From: David Ahern <dsah...@gmail.com> > > The gateway setting is not per fib6_info entry but per-fib6_nh. Add a new > fib_nh_has_gw flag to fib6_nh and convert references to RTF_GATEWAY to > the new flag. For IPv6 address the flag is cheaper than checking that > nh_gw is non-0 like IPv4 does. > > While this increases fib6_nh by 8-bytes, the effective allocation size of > a fib6_info is unchanged. The 8 bytes is recovered later with a > fib_nh_common change. > > Signed-off-by: David Ahern <dsah...@gmail.com>
Reviewed-by: Ido Schimmel <ido...@mellanox.com>