]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: avoid limits overflow
authorEric Dumazet <eric.dumazet@gmail.com>
Tue, 9 Nov 2010 23:24:26 +0000 (23:24 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 10 Nov 2010 20:12:00 +0000 (12:12 -0800)
commit8d987e5c75107ca7515fa19e857cfa24aab6ec8f
tree6392c5f08f0df39d42a079336f6be3960ac404dc
parent67286640f638f5ad41a946b9a3dc75327950248f
net: avoid limits overflow

Robin Holt tried to boot a 16TB machine and found some limits were
reached : sysctl_tcp_mem[2], sysctl_udp_mem[2]

We can switch infrastructure to use long "instead" of "int", now
atomic_long_t primitives are available for free.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Reported-by: Robin Holt <holt@sgi.com>
Reviewed-by: Robin Holt <holt@sgi.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
15 files changed:
include/net/dn.h
include/net/sock.h
include/net/tcp.h
include/net/udp.h
net/core/sock.c
net/decnet/af_decnet.c
net/decnet/sysctl_net_decnet.c
net/ipv4/proc.c
net/ipv4/sysctl_net_ipv4.c
net/ipv4/tcp.c
net/ipv4/tcp_input.c
net/ipv4/udp.c
net/sctp/protocol.c
net/sctp/socket.c
net/sctp/sysctl.c