]> www.infradead.org Git - users/dwmw2/linux.git/commit
net: enable memcg accounting for veth queues
authorVasily Averin <vvs@openvz.org>
Fri, 29 Apr 2022 05:17:35 +0000 (08:17 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sun, 1 May 2022 12:15:16 +0000 (13:15 +0100)
commit961c6136359eef38a8c023d02028fdcd123f02a6
tree6a873ac6f3a8a553173d16e43baf28e5c81fc533
parentb97af72209eedccb79a146b7b6243cffb20739b2
net: enable memcg accounting for veth queues

veth netdevice defines own rx queues and allocates array containing
up to 4095 ~750-bytes-long 'struct veth_rq' elements. Such allocation
is quite huge and should be accounted to memcg.

Signed-off-by: Vasily Averin <vvs@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/veth.c