]> git.baikalelectronics.ru Git - kernel.git/commit
memcg: enable accounting for VLAN group array
authorVasily Averin <vvs@virtuozzo.com>
Mon, 19 Jul 2021 10:44:44 +0000 (13:44 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Jul 2021 13:00:38 +0000 (06:00 -0700)
commit21d5aa278af4e4f2a061decc2aabb07de23c708e
tree11ee565890af5cedf82349ee836d1eeebf6cf632
parente1a56f877b9ebd1c72cebbb4c8c094961591aefd
memcg: enable accounting for VLAN group array

vlan array consume up to 8 pages of memory per net device.

It makes sense to account for them to restrict the host's memory
consumption from inside the memcg-limited container.

Signed-off-by: Vasily Averin <vvs@virtuozzo.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/8021q/vlan.c