]> 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)
commite5489abeb6f51440f62b14a08ebc8c7a40cd9142
tree73c8ad75ca9c0e8e7a8fbc220f3c27699088b447
parent57a337b767f3dbc25e3043caac7ca6ccbe7d5cef
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