Re: [PATCH net-next] udp: be less conservative with sock rmem accounting

2016-12-03 Thread David Miller
From: Paolo Abeni Date: Fri, 2 Dec 2016 17:35:49 +0100 > Before commit 850cbaddb52d ("udp: use it's own memory accounting > schema"), the udp protocol allowed sk_rmem_alloc to grow beyond > the rcvbuf by the whole current packet's truesize. After said commit > we allow

[PATCH net-next] udp: be less conservative with sock rmem accounting

2016-12-02 Thread Paolo Abeni
Before commit 850cbaddb52d ("udp: use it's own memory accounting schema"), the udp protocol allowed sk_rmem_alloc to grow beyond the rcvbuf by the whole current packet's truesize. After said commit we allow sk_rmem_alloc to exceed the rcvbuf only if the receive queue is empty. As reported by