diff options
author | Eric Dumazet <edumazet@google.com> | 2023-11-30 18:41:35 +0000 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-12-01 19:31:10 -0800 |
commit | b32e8fbeace6117b00b072eef3f1726149fe0298 (patch) | |
tree | 98bce6b2b40be12f5d5ff05a70b944ca436761b1 /net/ipv4/icmp.c | |
parent | 527d2cd8b852e06c25c129fe400832bf88d2b5b0 (diff) | |
download | linux-b32e8fbeace6117b00b072eef3f1726149fe0298.tar.gz linux-b32e8fbeace6117b00b072eef3f1726149fe0298.tar.bz2 linux-b32e8fbeace6117b00b072eef3f1726149fe0298.zip |
tcp: tcp_gro_dev_warn() cleanup
Use DO_ONCE_LITE_IF() and __cold attribute to put tcp_gro_dev_warn()
out of line.
This also allows the message to be printed again after a
"echo 1 > /sys/kernel/debug/clear_warn_once"
Also add a READ_ONCE() when reading device mtu, as it could
be changed concurrently.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Link: https://lore.kernel.org/r/20231130184135.4130860-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/ipv4/icmp.c')
0 files changed, 0 insertions, 0 deletions