On 1/28/21 5:49 AM, Petr Machata wrote: > From: Ido Schimmel <ido...@nvidia.com> > > Currently there are only two types of in-kernel nexthop notification. > The two are distinguished by the 'is_grp' boolean field in 'struct > nh_notifier_info'. > > As more notification types are introduced for more next-hop group types, a > boolean is not an easily extensible interface. Instead, convert it to an > enum. > > Signed-off-by: Ido Schimmel <ido...@nvidia.com> > Reviewed-by: Petr Machata <pe...@nvidia.com> > Signed-off-by: Petr Machata <pe...@nvidia.com> > --- > .../ethernet/mellanox/mlxsw/spectrum_router.c | 54 ++++++++++++++----- > drivers/net/netdevsim/fib.c | 23 ++++---- > include/net/nexthop.h | 7 ++- > net/ipv4/nexthop.c | 14 ++--- > 4 files changed, 69 insertions(+), 29 deletions(-) >
Reviewed-by: David Ahern <dsah...@kernel.org>