nexthop: Notify userspace about bucket migrations
authorPetr Machata <petrm@nvidia.com>
Thu, 11 Mar 2021 18:03:24 +0000 (19:03 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 12 Mar 2021 00:13:00 +0000 (16:13 -0800)
commit0b4818aabcd6508a2545acb809f4acea034cea9c
treee21924dc7e9d9ac1c3d3f7894cc0cc4ac3abcc07
parent187d4c6b97967b8d023ccb981742f8605a1b1cb7
nexthop: Notify userspace about bucket migrations

Nexthop replacements et.al. are notified through netlink, but if a delayed
work migrates buckets on the background, userspace will stay oblivious.
Notify these as RTM_NEWNEXTHOPBUCKET events.

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: David S. Miller <davem@davemloft.net>
net/ipv4/nexthop.c