inet: remove (struct uncached_list)->quarantine
authorEric Dumazet <edumazet@google.com>
Tue, 4 Jun 2024 16:51:50 +0000 (16:51 +0000)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 6 Jun 2024 10:33:25 +0000 (12:33 +0200)
commit98aa546af5e4f180439c82da403cc77926d3953b
tree4f65c5a5b6a68d41eab85fecdee4496fba78be13
parentb4cb4a1391dcdc640c4ade003aaf0ee19cc8d509
inet: remove (struct uncached_list)->quarantine

This list is used to tranfert dst that are handled by
rt_flush_dev() and rt6_uncached_list_flush_dev() out
of the per-cpu lists.

But quarantine list is not used later.

If we simply use list_del_init(&rt->dst.rt_uncached),
this also removes the dst from per-cpu list.

This patch also makes the future calls to rt_del_uncached_list()
and rt6_uncached_list_del() faster, because no spinlock
acquisition is needed anymore.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://lore.kernel.org/r/20240604165150.726382-1-edumazet@google.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
net/ipv4/route.c
net/ipv6/route.c