diff options
author | Eric Dumazet <edumazet@google.com> | 2023-10-03 18:19:20 +0000 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-10-04 17:32:24 -0700 |
commit | d86e5fbd4c965fdda72f99ccd54a1031ea4df51d (patch) | |
tree | e0ee9a23128b71d61e4836e0ef1a524e0c48f26a /net/ipv6/tcp_ipv6.c | |
parent | 397f70e3be01e2a62d08a12fa135d0f13fea9fb8 (diff) | |
download | linux-d86e5fbd4c965fdda72f99ccd54a1031ea4df51d.tar.gz linux-d86e5fbd4c965fdda72f99ccd54a1031ea4df51d.tar.bz2 linux-d86e5fbd4c965fdda72f99ccd54a1031ea4df51d.zip |
net: skb_queue_purge_reason() optimizations
1) Exit early if the list is empty.
2) splice the list into a local list,
so that we block hard irqs only once.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://lore.kernel.org/r/20231003181920.3280453-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/ipv6/tcp_ipv6.c')
0 files changed, 0 insertions, 0 deletions