nexthop: Dispatch notifier init()/fini() by group type
authorPetr Machata <petrm@nvidia.com>
Thu, 28 Jan 2021 12:49:18 +0000 (13:49 +0100)
committerJakub Kicinski <kuba@kernel.org>
Fri, 29 Jan 2021 04:49:52 +0000 (20:49 -0800)
commitda230501f2c95a39eaa0856afd0122d35bda9e5d
tree73c8ad75ca9c0e8e7a8fbc220f3c27699088b447
parent09ad6becf5355fe0645f500f518fbbd531715722
nexthop: Dispatch notifier init()/fini() by group type

After there are several next-hop group types, initialization and
finalization of notifier type needs to reflect the actual type. Transform
nh_notifier_grp_info_init() and _fini() to make extending them easier.

Signed-off-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv4/nexthop.c