Re: [PATCH v3 net-next 07/13] ipv6: Move gateway checks to a fib6_nh setting

2019-03-28 Thread Ido Schimmel
On Wed, Mar 27, 2019 at 08:53:52PM -0700, David Ahern wrote: > From: David Ahern > > 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 checkin

[PATCH v3 net-next 07/13] ipv6: Move gateway checks to a fib6_nh setting

2019-03-27 Thread David Ahern
From: David Ahern 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