On 1/28/21 5:49 AM, Petr Machata wrote:
From: Ido Schimmel <idosch@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 <idosch@nvidia.com>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: Petr Machata <petrm@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 <dsahern@kernel.org>