Re: [RFC/PATCH 1/3] UDP memory usage accounting (take 2): fix send buffer check

2007-09-28 Thread David Miller
From: Satoshi OSHIMA <[EMAIL PROTECTED]> Date: Fri, 28 Sep 2007 22:37:54 +0900 > } else if (i < MAX_SKB_FRAGS) { > > +if (atomic_read(&sk->sk_wmem_alloc) + PAGE_SIZE > > +> 2 * sk->sk_sndbuf) { > > +err = -ENOBUFS; > > +

[RFC/PATCH 1/3] UDP memory usage accounting (take 2): fix send buffer check

2007-09-28 Thread Satoshi OSHIMA
This patch introduces sndbuf size check before memory allcation for send buffer. signed-off-by: Satoshi Oshima <[EMAIL PROTECTED]> signed-off-by: Hideo Aoki <[EMAIL PROTECTED]> Index: 2.6.23-rc7-udp_limit/net/ipv4/ip_output.c ===