diff options
author | 2016-12-02 17:35:49 +0100 | |
---|---|---|
committer | 2016-12-03 16:14:48 -0500 | |
commit | 363dc73acacbbcdae98acf5612303e9770e04b1d (patch) | |
tree | 68077749dd6983143b8c58a8167ccbdb2448f7c7 /drivers/net/wireless/admtek/adm8211.c | |
parent | net_sched: gen_estimator: account for timer drifts (diff) | |
download | wireguard-linux-363dc73acacbbcdae98acf5612303e9770e04b1d.tar.xz wireguard-linux-363dc73acacbbcdae98acf5612303e9770e04b1d.zip |
udp: be less conservative with sock rmem accounting
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 <brouer@redhat.com>
Fixes: 850cbaddb52d ("udp: use it's own memory accounting schema")
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wireless/admtek/adm8211.c')
0 files changed, 0 insertions, 0 deletions