Re: [PATCH 2/4] datagram: mem_scheudle functions

2007-12-18 Thread Hideo AOKI
Hello, I really apologize for not replying to this mail sooner. Herbert Xu wrote: > On Mon, Dec 03, 2007 at 07:10:45PM -0500, Hideo AOKI wrote: >> Because we have to call wmem_schedule function in ip_append_data() >> which is used by several protocols both stream and datagram. >> I just thought a

Re: [PATCH 2/4] datagram: mem_scheudle functions

2007-12-15 Thread Herbert Xu
On Mon, Dec 03, 2007 at 07:10:45PM -0500, Hideo AOKI wrote: > > Because we have to call wmem_schedule function in ip_append_data() > which is used by several protocols both stream and datagram. > I just thought adding the sk_wmem_schedule() was only way to call > proper function from ip_append_data

Re: [PATCH 2/4] datagram: mem_scheudle functions

2007-12-03 Thread Hideo AOKI
Herbert Xu wrote: > On Wed, Nov 28, 2007 at 01:52:59PM -0500, Hideo AOKI wrote: >> +static inline int sk_wmem_schedule(struct sock *sk, int size) >> +{ >> +if (sk->sk_type == SOCK_STREAM) >> +return sk_stream_wmem_schedule(sk, size); >> +else if (sk->sk_type == SOCK_DGRAM) >> +

Re: [PATCH 2/4] datagram: mem_scheudle functions

2007-12-01 Thread Herbert Xu
On Wed, Nov 28, 2007 at 01:52:59PM -0500, Hideo AOKI wrote: > > +static inline int sk_wmem_schedule(struct sock *sk, int size) > +{ > + if (sk->sk_type == SOCK_STREAM) > + return sk_stream_wmem_schedule(sk, size); > + else if (sk->sk_type == SOCK_DGRAM) > + return sk

[PATCH 2/4] datagram: mem_scheudle functions

2007-11-28 Thread Hideo AOKI
This patch introduces datagram memory accounting functions. Owing to call memory schedule functions from IP layer, sk_wmem_schedule() is also added. Cc: Satoshi Oshima <[EMAIL PROTECTED]> signed-off-by: Hideo Aoki <[EMAIL PROTECTED]> --- include/net/sock.h | 31 +++