summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/renesas/ravb_main.c
diff options
context:
space:
mode:
authorKirill Tkhai2018-03-01 13:23:28 +0100
committerDavid S. Miller2018-03-07 16:19:10 +0100
commit30855ffc29b972d3316e2adcf8029c00c36fad60 (patch)
treecbac1df04ca36f33c22cc6db718ff35732863b40 /drivers/net/ethernet/renesas/ravb_main.c
parentMerge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net (diff)
downloadkernel-qcow2-linux-30855ffc29b972d3316e2adcf8029c00c36fad60.tar.gz
kernel-qcow2-linux-30855ffc29b972d3316e2adcf8029c00c36fad60.tar.xz
kernel-qcow2-linux-30855ffc29b972d3316e2adcf8029c00c36fad60.zip
net: Make account struct net to memcg
The patch adds SLAB_ACCOUNT to flags of net_cachep cache, which enables accounting of struct net memory to memcg kmem. Since number of net_namespaces may be significant, user want to know, how much there were consumed, and control. Note, that we do not account net_generic to the same memcg, where net was accounted, moreover, we don't do this at all (*). We do not want the situation, when single memcg memory deficit prevents us to register new pernet_operations. (*)Even despite there is !current process accounting already available in linux-next. See kmalloc_memcg() there for the details. Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/renesas/ravb_main.c')
0 files changed, 0 insertions, 0 deletions