Deleted Added
full compact
cc_cubic.c (220560) cc_cubic.c (220592)
1/*-
2 * Copyright (c) 2008-2010 Lawrence Stewart <lstewart@freebsd.org>
3 * Copyright (c) 2010 The FreeBSD Foundation
4 * All rights reserved.
5 *
6 * This software was developed by Lawrence Stewart while studying at the Centre
7 * for Advanced Internet Architectures, Swinburne University of Technology, made
8 * possible in part by a grant from the Cisco University Research Program Fund

--- 32 unchanged lines hidden (view full) ---

41 * University of Technology's Centre for Advanced Internet Architectures,
42 * Melbourne, Australia, which was made possible in part by a grant from the
43 * Cisco University Research Program Fund at Community Foundation Silicon
44 * Valley. More details are available at:
45 * http://caia.swin.edu.au/urp/newtcp/
46 */
47
48#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2008-2010 Lawrence Stewart <lstewart@freebsd.org>
3 * Copyright (c) 2010 The FreeBSD Foundation
4 * All rights reserved.
5 *
6 * This software was developed by Lawrence Stewart while studying at the Centre
7 * for Advanced Internet Architectures, Swinburne University of Technology, made
8 * possible in part by a grant from the Cisco University Research Program Fund

--- 32 unchanged lines hidden (view full) ---

41 * University of Technology's Centre for Advanced Internet Architectures,
42 * Melbourne, Australia, which was made possible in part by a grant from the
43 * Cisco University Research Program Fund at Community Foundation Silicon
44 * Valley. More details are available at:
45 * http://caia.swin.edu.au/urp/newtcp/
46 */
47
48#include <sys/cdefs.h>
49__FBSDID("$FreeBSD: head/sys/netinet/cc/cc_cubic.c 220560 2011-04-12 08:13:18Z lstewart $");
49__FBSDID("$FreeBSD: head/sys/netinet/cc/cc_cubic.c 220592 2011-04-13 11:28:46Z pluknet $");
50
51#include <sys/param.h>
52#include <sys/kernel.h>
53#include <sys/malloc.h>
54#include <sys/module.h>
55#include <sys/socket.h>
56#include <sys/socketvar.h>
57#include <sys/sysctl.h>

--- 35 unchanged lines hidden (view full) ---

93 /* Mean observed rtt between congestion epochs. */
94 int mean_rtt_ticks;
95 /* ACKs since last congestion event. */
96 int epoch_ack_count;
97 /* Time of last congestion event in ticks. */
98 int t_last_cong;
99};
100
50
51#include <sys/param.h>
52#include <sys/kernel.h>
53#include <sys/malloc.h>
54#include <sys/module.h>
55#include <sys/socket.h>
56#include <sys/socketvar.h>
57#include <sys/sysctl.h>

--- 35 unchanged lines hidden (view full) ---

93 /* Mean observed rtt between congestion epochs. */
94 int mean_rtt_ticks;
95 /* ACKs since last congestion event. */
96 int epoch_ack_count;
97 /* Time of last congestion event in ticks. */
98 int t_last_cong;
99};
100
101MALLOC_DECLARE(M_CUBIC);
102MALLOC_DEFINE(M_CUBIC, "cubic data",
101static MALLOC_DEFINE(M_CUBIC, "cubic data",
103 "Per connection data required for the CUBIC congestion control algorithm");
104
105struct cc_algo cubic_cc_algo = {
106 .name = "cubic",
107 .ack_received = cubic_ack_received,
108 .cb_destroy = cubic_cb_destroy,
109 .cb_init = cubic_cb_init,
110 .cong_signal = cubic_cong_signal,

--- 297 unchanged lines hidden ---
102 "Per connection data required for the CUBIC congestion control algorithm");
103
104struct cc_algo cubic_cc_algo = {
105 .name = "cubic",
106 .ack_received = cubic_ack_received,
107 .cb_destroy = cubic_cb_destroy,
108 .cb_init = cubic_cb_init,
109 .cong_signal = cubic_cong_signal,

--- 297 unchanged lines hidden ---