diff options
author | Nikolay Aleksandrov <nikolay@nvidia.com> | 2021-11-29 15:09:24 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-11-30 14:59:18 +0300 |
commit | 7709efa62c4fd2a79d154579ea19be34f9fa9a31 (patch) | |
tree | 2c1c212ffc05899395e45018e7985216612ae56b /ipc | |
parent | dc2724a64e72429856fc22d8eb015225af63129e (diff) | |
download | linux-7709efa62c4fd2a79d154579ea19be34f9fa9a31.tar.xz |
net: nexthop: reduce rcu synchronizations when replacing resilient groups
We can optimize resilient nexthop group replaces by reducing the number of
synchronize_net calls. After commit 1005f19b9357 ("net: nexthop: release
IPv6 per-cpu dsts when replacing a nexthop group") we always do a
synchronize_net because we must ensure no new dsts can be created for the
replaced group's removed nexthops, but we already did that when replacing
resilient groups, so if we always call synchronize_net after any group
type replacement we'll take care of both cases and reduce synchronize_net
calls for resilient groups.
Suggested-by: Ido Schimmel <idosch@idosch.org>
Signed-off-by: Nikolay Aleksandrov <nikolay@nvidia.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Tested-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions