OSDN Git Service

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)
commita89893dd7b08fa85bcf643ca742ab388e001c08e
tree11ee565890af5cedf82349ee836d1eeebf6cf632
parent990c74e3f41d7ae9711d3fb3e8b3f0d3088e0969
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