Re: [PATCH 07/13] net: tcp_memcontrol: sanitize tcp memory accounting callbacks

2015-11-25 Thread David Miller
From: Johannes Weiner Date: Tue, 24 Nov 2015 16:51:59 -0500 > There won't be a tcp control soft limit, so integrating the memcg code > into the global skmem limiting scheme complicates things > unnecessarily. Replace this with simple and clear charge and uncharge >

[PATCH 07/13] net: tcp_memcontrol: sanitize tcp memory accounting callbacks

2015-11-24 Thread Johannes Weiner
There won't be a tcp control soft limit, so integrating the memcg code into the global skmem limiting scheme complicates things unnecessarily. Replace this with simple and clear charge and uncharge calls--hidden behind a jump label--to account skb memory. Note that this is not purely aesthetic: