Thread (27 messages) flat view 27 messages, 3 authors, 2021-01-29

Re: [PATCH net-next 05/12] nexthop: Use enum to encode notification type

From: David Ahern <hidden>
Date: 2021-01-29 03:13:23

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>

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help