]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
ipv6_tunnel: Rate limit warning messages
authorIdo Schimmel <idosch@nvidia.com>
Thu, 20 Jan 2022 08:05:46 +0000 (10:05 +0200)
committerPaolo Pisati <paolo.pisati@canonical.com>
Thu, 3 Feb 2022 09:28:50 +0000 (10:28 +0100)
commit9b9220191bd3eac884d9501c88267530859a1dbd
tree9ae8f1f046e84d00122291d572ea1d95e9dd41a4
parent4e133dc6f040f7e1e48933a94bd9f35ad4692d70
ipv6_tunnel: Rate limit warning messages

BugLink: https://bugs.launchpad.net/bugs/1959879
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>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
net/ipv6/ip6_tunnel.c