]> git.baikalelectronics.ru Git - kernel.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)
commit717d5a028a5612f2b1c23468340107bce9556ef7
tree6a873ac6f3a8a553173d16e43baf28e5c81fc533
parentee0e1be48cdec2becf6ba2a7337f27581a6db1be
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