]> git.baikalelectronics.ru Git - kernel.git/commit
net: add sk_stream_is_writeable() helper
authorEric Dumazet <edumazet@google.com>
Tue, 23 Jul 2013 03:26:31 +0000 (20:26 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 25 Jul 2013 00:54:48 +0000 (17:54 -0700)
commitcb8b71871b215684b524075b9b1007f873fc3c45
tree3d04f970a54863e025f13c7f9de18c221e16b7d7
parent2bf31004a26148536285ed30f9f4aae6837d4337
net: add sk_stream_is_writeable() helper

Several call sites use the hardcoded following condition :

sk_stream_wspace(sk) >= sk_stream_min_wspace(sk)

Lets use a helper because TCP_NOTSENT_LOWAT support will change this
condition for TCP sockets.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Neal Cardwell <ncardwell@google.com>
Cc: Yuchung Cheng <ycheng@google.com>
Acked-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sock.h
net/ceph/messenger.c
net/core/stream.c
net/dccp/proto.c
net/ipv4/tcp.c
net/sunrpc/svcsock.c
net/sunrpc/xprtsock.c