OSDN Git Service

nexthop: Replay nexthops when registering a notifier
authorIdo Schimmel <idosch@nvidia.com>
Wed, 4 Nov 2020 13:30:35 +0000 (15:30 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 6 Nov 2020 19:28:50 +0000 (11:28 -0800)
commit975ff7f3324af33e218e3d0abf5797c2b67f97d7
tree06f88b25bb685ca81913ad5b06ec8ac5cf4c33f2
parentce7e9c8a080b6daca646a7740d916ed547503a12
nexthop: Replay nexthops when registering a notifier

When registering a new notifier to the nexthop notification chain,
replay all the existing nexthops to the new notifier so that it will
have a complete picture of the available nexthops.

Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv4/nexthop.c