Re: [PATCH 4/4] UDP memory accounting and limitation(take 5): memory limitation

2007-10-16 Thread Herbert Xu
On Wed, Oct 17, 2007 at 12:06:40AM -0400, Hideo AOKI wrote: > > Thank you so much for your comments. > > I'm going to fix them in next take patch set. Thank you! -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} <[EMAIL PROTECTED]> Home Page: http://gondor.apana.org.au/~

Re: [PATCH 4/4] UDP memory accounting and limitation(take 5): memory limitation

2007-10-16 Thread Hideo AOKI
Herbert Xu wrote: On Fri, Oct 12, 2007 at 09:11:27PM +0900, Satoshi OSHIMA wrote: +static inline int __ip_check_max_skb_pages(struct sock *sk, int size) +{ + switch(sk->sk_protocol) { + case IPPROTO_UDP: + if (sk->sk_prot->sysctl_mem[0] > UDP_MIN_SKB_PAGES) +

Re: [PATCH 4/4] UDP memory accounting and limitation(take 5): memory limitation

2007-10-15 Thread Herbert Xu
On Fri, Oct 12, 2007 at 09:11:27PM +0900, Satoshi OSHIMA wrote: > > +static inline int __ip_check_max_skb_pages(struct sock *sk, int size) > +{ > + switch(sk->sk_protocol) { > + case IPPROTO_UDP: > + if (sk->sk_prot->sysctl_mem[0] > UDP_MIN_SKB_PAGES) > + if

[PATCH 4/4] UDP memory accounting and limitation(take 5): memory limitation

2007-10-12 Thread Satoshi OSHIMA
This patch introduces memory limitation for UDP. signed-off-by: Satoshi Oshima <[EMAIL PROTECTED]> signed-off-by: Hideo Aoki <[EMAIL PROTECTED]> Index: 2.6.23-udp_limit/include/net/udp.h === --- 2.6.23-udp_limit.orig/include/net/udp