Eric Dumazet
2b19585012
tcp: add tp->dup_ack_counter
...
In commit 86de5921a3 ("tcp: defer SACK compression after DupThresh")
I added a TCP_FASTRETRANS_THRESH bias to tp->compressed_ack in order
to enable sack compression only after 3 dupacks.
Since we plan to relax this rule for flows that involve
stacks not requiring this old rule, this patch adds
a distinct tp->dup_ack_counter.
This means the TCP_FASTRETRANS_THRESH value is now used
in a single location that a future patch can adjust:
if (tp->dup_ack_counter < TCP_FASTRETRANS_THRESH) {
tp->dup_ack_counter++;
goto send_now;
}
This patch also introduces tcp_sack_compress_send_ack()
helper to ease following patch comprehension.
This patch refines LINUX_MIB_TCPACKCOMPRESSED to not
count the acks that we had to send if the timer expires
or tcp_sack_compress_send_ack() is sending an ack.
Signed-off-by: Eric Dumazet <edumazet@google.com >
Acked-by: Soheil Hassas Yeganeh <soheil@google.com >
Acked-by: Neal Cardwell <ncardwell@google.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2020-04-30 13:24:01 -07:00
..
2020-04-01 08:03:28 +02:00
2020-04-18 15:44:54 -05:00
2020-04-03 15:05:35 -07:00
2020-04-01 14:47:40 -07:00
2020-03-31 21:29:04 +02:00
2020-04-08 21:25:49 -07:00
2020-04-16 10:28:12 +01:00
2020-04-08 21:29:10 -07:00
2020-04-30 09:49:53 -07:00
2020-03-31 22:08:54 +02:00
2020-04-18 15:44:55 -05:00
2020-04-10 15:36:22 -07:00
2020-03-30 11:45:18 -07:00
2020-04-18 15:44:56 -05:00
2020-04-03 15:05:35 -07:00
2020-04-07 19:44:52 -07:00
2020-04-17 12:40:38 -04:00
2020-04-02 15:50:04 -07:00
2020-04-08 21:03:40 -07:00
2020-03-31 10:05:01 -07:00
2020-04-17 21:38:11 -06:00
2020-04-18 15:44:54 -05:00
2020-04-07 10:43:42 -07:00
2020-04-07 10:43:43 -07:00
2020-04-18 15:44:54 -05:00
2020-04-01 14:56:44 -06:00
2020-04-18 15:44:54 -05:00
2020-03-30 14:59:53 -07:00
2020-03-30 17:36:33 -07:00
2020-03-30 19:52:37 -07:00
2020-04-22 12:14:18 -07:00
2020-04-15 23:58:48 -04:00
2020-04-03 11:30:20 -07:00
2020-04-10 15:36:21 -07:00
2020-03-31 11:04:05 -07:00
2020-04-07 10:43:42 -07:00
2020-04-07 10:43:42 -07:00
2020-04-18 15:44:55 -05:00
2020-04-03 11:32:13 -04:00
2020-04-02 19:15:03 -07:00
2020-04-01 14:47:40 -07:00
2020-04-07 10:45:15 +02:00
2020-04-02 19:15:03 -07:00
2020-04-08 11:00:00 -07:00
2020-04-18 15:44:54 -05:00
2020-04-18 15:44:54 -05:00
2020-03-31 11:04:05 -07:00
2020-04-18 15:44:54 -05:00
2020-04-18 15:44:54 -05:00
2020-04-18 15:44:54 -05:00
2020-04-04 11:58:55 -07:00
2020-04-18 15:44:54 -05:00
2020-04-07 10:43:38 -07:00
2020-04-07 10:43:39 -07:00
2020-04-02 09:35:32 -07:00
2020-04-10 15:36:21 -07:00
2020-04-15 11:48:21 +02:00
2020-04-27 11:40:25 -07:00
2020-04-18 15:44:55 -05:00
2020-04-18 15:44:55 -05:00
2020-04-30 12:54:01 -07:00
2020-04-19 11:23:33 -07:00
2020-04-01 13:20:14 +02:00
2020-04-02 09:35:30 -07:00
2020-04-02 09:35:25 -07:00
2020-03-30 18:51:47 -07:00
2020-04-14 10:39:56 -04:00
2020-04-06 22:55:27 +02:00
2020-03-31 17:29:33 -07:00
2020-04-18 15:44:55 -05:00
2020-03-31 17:29:33 -07:00
2020-04-10 15:36:21 -07:00
2020-04-18 15:44:55 -05:00
2020-04-10 15:36:21 -07:00
2020-04-07 10:43:40 -07:00
2020-04-02 09:35:31 -07:00
2020-04-08 21:03:40 -07:00
2020-04-07 10:43:38 -07:00
2020-04-07 10:43:41 -07:00
2020-04-10 15:36:21 -07:00
2020-04-08 21:03:40 -07:00
2020-04-03 13:22:40 -07:00
2020-04-30 12:56:36 -07:00
2020-04-23 12:43:20 -07:00
2020-04-06 13:56:33 -04:00
2020-04-01 13:37:57 -04:00
2020-04-07 13:51:39 -07:00
2020-04-04 09:09:39 +02:00
2020-04-22 19:41:26 -07:00
2020-04-02 09:35:27 -07:00
2020-04-07 10:43:39 -07:00
2020-04-07 10:43:38 -07:00
2020-04-07 10:43:38 -07:00
2020-04-03 14:25:02 -07:00
2020-04-02 17:57:10 +01:00
2020-04-02 17:57:10 +01:00
2020-04-03 14:25:02 -07:00
2020-04-07 10:43:43 -07:00
2020-04-24 16:47:51 -07:00
2020-04-24 16:45:37 -07:00
2020-04-09 12:15:35 -05:00
2020-04-01 08:06:54 +02:00
2020-04-22 11:36:11 +02:00
2020-04-18 15:44:55 -05:00
2020-04-10 13:18:57 -07:00
2020-04-07 10:43:42 -07:00
2020-04-02 11:22:17 -07:00
2020-04-08 12:05:07 +02:00
2020-04-18 15:44:56 -05:00
2020-04-18 15:44:56 -05:00
2020-04-02 18:47:30 +02:00
2020-04-02 11:22:17 -07:00
2020-03-31 15:49:51 -07:00
2020-04-07 10:43:42 -07:00
2020-04-07 10:43:38 -07:00
2020-04-18 15:44:56 -05:00
2020-04-10 15:36:20 -07:00
2020-03-30 12:18:49 -07:00
2020-04-07 10:43:43 -07:00
2020-04-21 15:54:45 -07:00
2020-04-18 15:44:56 -05:00
2020-04-07 10:43:41 -07:00
2020-04-05 11:34:35 -07:00
2020-04-30 13:24:01 -07:00
2020-04-18 15:44:56 -05:00
2020-03-30 18:51:47 -07:00
2020-03-30 14:59:53 -07:00
2020-04-02 09:35:26 -07:00
2020-04-18 15:44:56 -05:00
2020-04-22 22:06:35 -04:00
2020-04-07 10:43:39 -07:00
2020-04-17 06:05:30 -04:00
2020-04-25 20:18:53 -07:00
2020-04-01 12:06:26 -04:00
2020-04-17 06:05:30 -04:00
2020-04-07 10:43:38 -07:00
2020-04-21 11:11:56 -07:00
2020-04-16 18:31:08 -04:00
2020-04-03 12:27:36 -07:00
2020-04-18 15:44:56 -05:00