]> git.baikalelectronics.ru Git - kernel.git/commit
memcg: ipv6/sit: account and don't WARN on ip_tunnel_prl structs allocation
authorVasily Averin <vvs@virtuozzo.com>
Mon, 19 Jul 2021 10:44:50 +0000 (13:44 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Jul 2021 13:00:38 +0000 (06:00 -0700)
commitbcfac3c6e86342a645031945f9b55c6d0602048b
tree151115de1857830b843f432a4511ddef9dfd58f7
parent21d5aa278af4e4f2a061decc2aabb07de23c708e
memcg: ipv6/sit: account and don't WARN on ip_tunnel_prl structs allocation

Author: Andrey Ryabinin <aryabinin@virtuozzo.com>

The size of the ip_tunnel_prl structs allocation is controllable from
user-space, thus it's better to avoid spam in dmesg if allocation failed.
Also add __GFP_ACCOUNT as this is a good candidate for per-memcg
accounting. Allocation is temporary and limited by 4GB.

Signed-off-by: Andrey Ryabinin <aryabinin@virtuozzo.com>
Signed-off-by: Vasily Averin <vvs@virtuozzo.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/sit.c