diff options
author | Eric Dumazet <edumazet@google.com> | 2024-12-19 18:03:30 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-12-21 00:04:40 +0300 |
commit | 05dd04b218f42c57a14e330fd8583995f141ed6b (patch) | |
tree | 3ddeeb723012bd6ebc2fd67c8bf1c38a5d0da269 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 710aebdad633d4608568ba8124d643e01866fc6d (diff) | |
download | linux-05dd04b218f42c57a14e330fd8583995f141ed6b.tar.xz |
inetpeer: avoid false sharing in inet_peer_xrlim_allow()
Under DOS, inet_peer_xrlim_allow() might be called millions
of times per second from different cpus.
Make sure to write over peer->rate_tokens and peer->rate_last
only when really needed.
Note the inherent races of this function are still there,
we do not care of precise ICMP rate limiting.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Link: https://patch.msgid.link/20241219150330.3159027-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions