Skip to content
Commit 8203efb3 authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller
Browse files

udp: calculate udp_mem based on low memory instead of all memory

This patch mimics commit 57413ebc


(tcp: calculate tcp_mem based on low memory instead of all memory)

The udp_mem array which contains limits on the total amount of memory
used by UDP sockets is calculated based on nr_all_pages.  On a 32 bits
x86 system, we should base this on the number of lowmem pages.

Signed-off-by: default avatarEric Dumazet <dada1@cosmosbay.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 271b72c7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment