]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
sched: Make check-spaces happy
authorDavid Goulet <dgoulet@torproject.org>
Thu, 14 Sep 2017 18:29:52 +0000 (14:29 -0400)
committerDavid Goulet <dgoulet@torproject.org>
Fri, 15 Sep 2017 15:40:59 +0000 (11:40 -0400)
Signed-off-by: David Goulet <dgoulet@torproject.org>
src/or/scheduler_kist.c

index 2733e78f0d375ea773b9383b2adfd2633f1a8d9d..85d0b2a1fca764e723ae69fdc3afdb17eb94722d 100644 (file)
@@ -245,13 +245,14 @@ update_socket_info_impl, (socket_table_ent_t *ent))
   if (tcp_space < 0) {
     tcp_space = 0;
   }
-  /* Imagine we have filled up tcp_space already for a socket and the scheduler
-   * isn't going to run again for a while. We should write a little extra to the
-   * kernel so it has some data to send between scheduling runs if it gets ACKs
-   * back so it doesn't sit idle. With the suggested sock_buf_size_factor of
-   * 1.0, a socket can have at most 2*cwnd data in the kernel: 1 cwnd on the
-   * wire waiting for ACKs and 1 cwnd ready and waiting to be sent when those
-   * ACKs come. */
+
+  /* Imagine we have filled up tcp_space already for a socket and the
+   * scheduler isn't going to run again for a while. We should write a little
+   * extra to the kernel so it has some data to send between scheduling runs
+   * if it gets ACKs back so it doesn't sit idle. With the suggested
+   * sock_buf_size_factor of 1.0, a socket can have at most 2*cwnd data in the
+   * kernel: 1 cwnd on the wire waiting for ACKs and 1 cwnd ready and waiting
+   * to be sent when those ACKs come. */
   extra_space =
     clamp_double_to_int64((ent->cwnd * ent->mss) * sock_buf_size_factor) -
     ent->notsent;