commit | 64dc61306ce7da370833289739e2f52dfc6b37ba | [log] [tgz] |
---|---|---|
author | Eric Dumazet <edumazet@google.com> | Mon Jul 22 20:26:31 2013 -0700 |
committer | David S. Miller <davem@davemloft.net> | Wed Jul 24 17:54:48 2013 -0700 |
tree | 3d04f970a54863e025f13c7f9de18c221e16b7d7 | |
parent | 4d58c0252002646ea522f5c6c623e558af459b39 [diff] |
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>