Eric Dumazet
ee2aabd3fc
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 >
2019-12-13 21:58:40 -08:00
..
2019-07-06 12:50:01 +02:00
2019-09-27 15:10:34 -07:00
2019-06-19 17:09:55 +02:00
2019-10-24 14:53:49 -07:00
2019-09-24 16:37:18 +02:00
2019-11-22 16:27:24 -08:00
2019-11-06 16:14:48 -08:00
2019-11-03 08:30:58 +01:00
2019-12-01 13:46:15 -08:00
2019-11-18 19:32:59 -08:00
2019-07-12 16:03:16 -07:00
2019-12-09 14:03:33 -08:00
2019-11-02 13:54:56 -07:00
2019-12-08 11:52:02 +01:00
2019-11-27 22:28:37 +01:00
2019-12-09 09:48:47 -08:00
2019-05-30 11:29:52 -07:00
2019-12-04 12:27:12 -08:00
2019-11-06 16:14:48 -08:00
2019-07-10 18:43:43 -07:00
2019-11-23 16:13:39 -08:00
2019-11-07 20:07:30 -08:00
2019-12-05 12:09:02 -08:00
2019-11-02 13:54:56 -07:00
2019-09-26 08:56:17 +02:00
2019-12-13 21:58:40 -08:00
2019-12-13 17:13:49 -08:00
2019-07-29 10:26:14 -07:00
2019-09-27 10:27:14 +02:00
2019-07-08 19:48:57 -07:00
2019-12-04 12:27:12 -08:00
2019-06-23 13:24:17 -07:00
2019-06-17 20:20:36 -07:00
2019-11-06 21:35:34 -08:00
2019-11-27 11:06:20 -08:00
2019-05-30 11:26:41 -07:00
2019-12-04 12:27:13 -08:00
2019-09-19 18:04:40 -07:00
2019-12-09 14:03:33 -08:00
2019-09-01 11:45:02 -07:00
2019-10-13 11:20:03 -07:00
2019-10-24 14:53:48 -07:00
2019-12-04 17:00:58 -08:00
2019-06-19 17:09:55 +02:00
2019-12-04 17:11:25 -08:00
2019-12-09 14:30:19 -08:00
2019-10-28 13:33:41 -07:00
2019-11-26 14:40:13 -08:00
2019-10-30 17:58:23 -07:00
2019-11-16 21:51:42 -08:00
2019-12-01 13:46:15 -08:00
2019-11-06 16:14:48 -08:00
2019-11-25 20:02:57 -08:00
2019-12-07 12:04:16 -08:00
2019-12-09 10:16:39 -08:00
2019-11-16 21:51:42 -08:00
2019-06-22 08:59:24 -04:00
2019-12-07 16:56:00 -08:00
2019-05-30 11:26:32 -07:00
2019-12-10 17:45:04 -08:00
2019-12-06 20:15:39 -08:00
2019-12-01 13:46:15 -08:00
2019-11-30 14:50:51 -08:00
2019-08-10 15:25:47 -07:00
2019-11-08 11:36:48 -08:00
2019-12-09 10:28:43 -08:00
2019-11-24 16:58:44 -08:00
2019-11-25 20:02:57 -08:00
2019-11-15 14:38:29 +01:00
2019-11-21 12:00:21 -08:00
2019-12-08 13:28:11 -08:00
2019-05-21 10:50:45 +02:00