Re: [PATCH net-next 1/2] sctp: implement memory accounting on tx path

2019-04-02 Thread Marcelo Ricardo Leitner
On Sun, Mar 31, 2019 at 04:53:46PM +0800, Xin Long wrote: > Now when sending packets, sk_mem_charge() and sk_mem_uncharge() have been > used to set sk_forward_alloc. We just need to call sk_wmem_schedule() to > check if the allocated should be raised, and call sk_mem_reclaim() to > check if the all

[PATCH net-next 1/2] sctp: implement memory accounting on tx path

2019-03-31 Thread Xin Long
Now when sending packets, sk_mem_charge() and sk_mem_uncharge() have been used to set sk_forward_alloc. We just need to call sk_wmem_schedule() to check if the allocated should be raised, and call sk_mem_reclaim() to check if the allocated should be reduced when it's under memory pressure. If sk_w