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

2020-05-05 Thread Greg KH
On Wed, May 06, 2020 at 07:50:53PM +0530, ashwin-h wrote: > From: Xin Long > > commit 1033990ac5b2ab6cee93734cb6d301aa3a35bcaa upstream. > > 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 > chec

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

2020-05-05 Thread ashwin-h
From: Xin Long commit 1033990ac5b2ab6cee93734cb6d301aa3a35bcaa upstream. 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