summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
diff options
context:
space:
mode:
authorEric Dumazet2012-01-31 11:56:48 +0100
committerDavid S. Miller2012-01-31 22:11:48 +0100
commit5f3d9cb2962967d9d7e03abb4a7ca275a9a3fea5 (patch)
tree7847eb10ad6a754ed2798bce28ea3d142484a164 /drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
parenttcp: md5: rcu conversion (diff)
downloadkernel-qcow2-linux-5f3d9cb2962967d9d7e03abb4a7ca275a9a3fea5.tar.gz
kernel-qcow2-linux-5f3d9cb2962967d9d7e03abb4a7ca275a9a3fea5.tar.xz
kernel-qcow2-linux-5f3d9cb2962967d9d7e03abb4a7ca275a9a3fea5.zip
tcp: md5: use sock_kmalloc() to limit md5 keys
There is no limit on number of MD5 keys an application can attach to a tcp socket. This patch adds a per tcp socket limit based on /proc/sys/net/core/optmem_max With current default optmem_max values, this allows about 150 keys on 64bit arches, and 88 keys on 32bit arches. Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c')
0 files changed, 0 insertions, 0 deletions