Deleted Added
full compact
cc_htcp.c (220560) cc_htcp.c (220592)
1/*-
2 * Copyright (c) 2007-2008
3 * Swinburne University of Technology, Melbourne, Australia
4 * Copyright (c) 2009-2010 Lawrence Stewart <lstewart@freebsd.org>
5 * Copyright (c) 2010 The FreeBSD Foundation
6 * All rights reserved.
7 *
8 * This software was developed at the Centre for Advanced Internet

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

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

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

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

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

168static int htcp_max_diff = INT_MAX / ((1 << HTCP_ALPHA_INC_SHIFT) * 10);
169
170/* Per-netstack vars. */
171static VNET_DEFINE(u_int, htcp_adaptive_backoff) = 0;
172static VNET_DEFINE(u_int, htcp_rtt_scaling) = 0;
173#define V_htcp_adaptive_backoff VNET(htcp_adaptive_backoff)
174#define V_htcp_rtt_scaling VNET(htcp_rtt_scaling)
175
52
53#include <sys/param.h>
54#include <sys/kernel.h>
55#include <sys/limits.h>
56#include <sys/malloc.h>
57#include <sys/module.h>
58#include <sys/socket.h>
59#include <sys/socketvar.h>

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

168static int htcp_max_diff = INT_MAX / ((1 << HTCP_ALPHA_INC_SHIFT) * 10);
169
170/* Per-netstack vars. */
171static VNET_DEFINE(u_int, htcp_adaptive_backoff) = 0;
172static VNET_DEFINE(u_int, htcp_rtt_scaling) = 0;
173#define V_htcp_adaptive_backoff VNET(htcp_adaptive_backoff)
174#define V_htcp_rtt_scaling VNET(htcp_rtt_scaling)
175
176MALLOC_DECLARE(M_HTCP);
177MALLOC_DEFINE(M_HTCP, "htcp data",
176static MALLOC_DEFINE(M_HTCP, "htcp data",
178 "Per connection data required for the HTCP congestion control algorithm");
179
180struct cc_algo htcp_cc_algo = {
181 .name = "htcp",
182 .ack_received = htcp_ack_received,
183 .cb_destroy = htcp_cb_destroy,
184 .cb_init = htcp_cb_init,
185 .cong_signal = htcp_cong_signal,

--- 336 unchanged lines hidden ---
177 "Per connection data required for the HTCP congestion control algorithm");
178
179struct cc_algo htcp_cc_algo = {
180 .name = "htcp",
181 .ack_received = htcp_ack_received,
182 .cb_destroy = htcp_cb_destroy,
183 .cb_init = htcp_cb_init,
184 .cong_signal = htcp_cong_signal,

--- 336 unchanged lines hidden ---