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 adding
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().
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)
+
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
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 +++