-
- Downloads
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>
Showing
- include/net/sock.h 4 additions, 0 deletionsinclude/net/sock.h
- net/ceph/messenger.c 1 addition, 1 deletionnet/ceph/messenger.c
- net/core/stream.c 1 addition, 1 deletionnet/core/stream.c
- net/dccp/proto.c 2 additions, 2 deletionsnet/dccp/proto.c
- net/ipv4/tcp.c 2 additions, 2 deletionsnet/ipv4/tcp.c
- net/sunrpc/svcsock.c 1 addition, 1 deletionnet/sunrpc/svcsock.c
- net/sunrpc/xprtsock.c 1 addition, 1 deletionnet/sunrpc/xprtsock.c
Loading
Please register or sign in to comment