]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ipv6_tunnel: Rate limit warning messages
authorIdo Schimmel <idosch@nvidia.com>
Thu, 20 Jan 2022 08:05:46 +0000 (10:05 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 8 Feb 2022 17:23:07 +0000 (18:23 +0100)
commite3e01ed702c7b5f5d306c2ef566d30b84aa57126
tree550b3ba0d25b5cf1b04f8e792b108e321f92fc05
parentde6336b17a1376db1c0f7a528cce8783db0881c0
ipv6_tunnel: Rate limit warning messages

commit 6cee105e7f2ced596373951d9ea08dacc3883c68 upstream.

The warning messages can be invoked from the data path for every packet
transmitted through an ip6gre netdev, leading to high CPU utilization.

Fix that by rate limiting the messages.

Fixes: 09c6bbf090ec ("[IPV6]: Do mandatory IPv6 tunnel endpoint checks in realtime")
Reported-by: Maksym Yaremchuk <maksymy@nvidia.com>
Tested-by: Maksym Yaremchuk <maksymy@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Amit Cohen <amcohen@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/ipv6/ip6_tunnel.c