* This is a Cubic specific implementation of after_idle. * - Reset cwnd by calling New Reno implementation of after_idle. * - Reset t_last_cong. */
| 234 | * - Reset t_last_cong. |
| 235 | */ |
| 236 | static void |
| 237 | cubic_after_idle(struct cc_var *ccv) |
| 238 | { |
| 239 | struct cubic *cubic_data; |
| 240 | |
| 241 | cubic_data = ccv->cc_data; |
| 242 | |
| 243 | cubic_data->max_cwnd = ulmax(cubic_data->max_cwnd, CCV(ccv, snd_cwnd)); |
| 244 | cubic_data->K = cubic_k(cubic_data->max_cwnd / CCV(ccv, t_maxseg)); |
| 245 | |
| 246 | newreno_cc_algo.after_idle(ccv); |
| 247 | cubic_data->t_last_cong = ticks; |
| 248 | } |
| 249 | |
| 250 | static void |
| 251 | cubic_cb_destroy(struct cc_var *ccv) |