]> git.baikalelectronics.ru Git - 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)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Jan 2022 11:38:17 +0000 (11:38 +0000)
commit10db9aa52c14db5e57506e6c98a7a4852dc80afa
tree185577a47873d219d8f4ceda4a1f792610290628
parent8b4a1385f5d91b85df03b0409ac5b6f23d8c88d2
ipv6_tunnel: Rate limit warning messages

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: 39b7d9e8f3f3 ("[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>
net/ipv6/ip6_tunnel.c