aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/route.c
diff options
context:
space:
mode:
authorNikolay Aleksandrov <nikolay@nvidia.com>2021-11-29 14:09:24 +0200
committerDavid S. Miller <davem@davemloft.net>2021-11-30 11:59:18 +0000
commit7709efa62c4fd2a79d154579ea19be34f9fa9a31 (patch)
tree2c1c212ffc05899395e45018e7985216612ae56b /net/ipv6/route.c
parentnet/tls: simplify the tls_set_sw_offload function (diff)
downloadlinux-dev-7709efa62c4fd2a79d154579ea19be34f9fa9a31.tar.xz
linux-dev-7709efa62c4fd2a79d154579ea19be34f9fa9a31.zip
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 '')
0 files changed, 0 insertions, 0 deletions