From: Paolo Abeni <pab...@redhat.com> 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 sk_rmem_alloc to exceed the rcvbuf only if the receive queue > is empty. As reported by Jesper this cause a performance regression > for some (small) values of rcvbuf. > > This commit is intended to fix the regression restoring the old > handling of the rcvbuf limit. > > Reported-by: Jesper Dangaard Brouer <bro...@redhat.com> > Fixes: 850cbaddb52d ("udp: use it's own memory accounting schema") > Signed-off-by: Paolo Abeni <pab...@redhat.com> Applied.