Searched hist:ee2aabd3fc2eef4c1a0ebdadccc76fbff74b94fc (Results 1 – 2 of 2) sorted by relevance
/linux/include/net/ |
H A D | tcp.h | diff ee2aabd3fc2eef4c1a0ebdadccc76fbff74b94fc Thu Dec 12 21:55:30 CET 2019 Eric Dumazet <edumazet@google.com> tcp: refine tcp_write_queue_empty() implementation
Due to how tcp_sendmsg() is implemented, we can have an empty skb at the tail of the write queue.
Most [1] tcp_write_queue_empty() callers want to know if there is anything to send (payload and/or FIN)
Instead of checking if the sk_write_queue is empty, we need to test if tp->write_seq == tp->snd_nxt
[1] tcp_send_fin() was the only caller that expected to see if an skb was in the write queue, I have changed the code to reuse the tcp_write_queue_tail() result.
Signed-off-by: Eric Dumazet <edumazet@google.com> Cc: Neal Cardwell <ncardwell@google.com> Acked-by: Soheil Hassas Yeganeh <soheil@google.com> Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
|
/linux/net/ipv4/ |
H A D | tcp_output.c | diff ee2aabd3fc2eef4c1a0ebdadccc76fbff74b94fc Thu Dec 12 21:55:30 CET 2019 Eric Dumazet <edumazet@google.com> tcp: refine tcp_write_queue_empty() implementation
Due to how tcp_sendmsg() is implemented, we can have an empty skb at the tail of the write queue.
Most [1] tcp_write_queue_empty() callers want to know if there is anything to send (payload and/or FIN)
Instead of checking if the sk_write_queue is empty, we need to test if tp->write_seq == tp->snd_nxt
[1] tcp_send_fin() was the only caller that expected to see if an skb was in the write queue, I have changed the code to reuse the tcp_write_queue_tail() result.
Signed-off-by: Eric Dumazet <edumazet@google.com> Cc: Neal Cardwell <ncardwell@google.com> Acked-by: Soheil Hassas Yeganeh <soheil@google.com> Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
|