]> git.hungrycats.org Git - linux/commit
net: enable memcg accounting for veth queues
authorVasily Averin <vvs@openvz.org>
Fri, 29 Apr 2022 05:17:35 +0000 (08:17 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 Mar 2024 14:38:45 +0000 (14:38 +0000)
commit914c73e7872dba3870dca5b4e2e7f4afbde42903
treec634d53fdf2a44ce7ddf02dbe263070d8349be16
parent8d4d26f51ef0d8d23f99b880e0cd897bb86acbab
net: enable memcg accounting for veth queues

[ Upstream commit 961c6136359eef38a8c023d02028fdcd123f02a6 ]

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>
Stable-dep-of: 1ce7d306ea63 ("veth: try harder when allocating queue memory")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/veth.c