]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit47a0c2480d170e75fa42533961bcbfdde774f91a
tree73c8ad75ca9c0e8e7a8fbc220f3c27699088b447
parent8256a270da61ac07ab73777fe0a9a9705a7dee40
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