cc_vegas.c (220560) | cc_vegas.c (220592) |
---|---|
1/*- 2 * Copyright (c) 2009-2010 3 * Swinburne University of Technology, Melbourne, Australia 4 * Copyright (c) 2010 Lawrence Stewart <lstewart@freebsd.org> 5 * Copyright (c) 2010-2011 The FreeBSD Foundation 6 * All rights reserved. 7 * 8 * This software was developed at the Centre for Advanced Internet --- 40 unchanged lines hidden (view full) --- 49 * University of Technology's Centre for Advanced Internet Architectures, 50 * Melbourne, Australia, which was made possible in part by a grant from the 51 * Cisco University Research Program Fund at Community Foundation Silicon 52 * Valley. More details are available at: 53 * http://caia.swin.edu.au/urp/newtcp/ 54 */ 55 56#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2009-2010 3 * Swinburne University of Technology, Melbourne, Australia 4 * Copyright (c) 2010 Lawrence Stewart <lstewart@freebsd.org> 5 * Copyright (c) 2010-2011 The FreeBSD Foundation 6 * All rights reserved. 7 * 8 * This software was developed at the Centre for Advanced Internet --- 40 unchanged lines hidden (view full) --- 49 * University of Technology's Centre for Advanced Internet Architectures, 50 * Melbourne, Australia, which was made possible in part by a grant from the 51 * Cisco University Research Program Fund at Community Foundation Silicon 52 * Valley. More details are available at: 53 * http://caia.swin.edu.au/urp/newtcp/ 54 */ 55 56#include <sys/cdefs.h> |
57__FBSDID("$FreeBSD: head/sys/netinet/cc/cc_vegas.c 220560 2011-04-12 08:13:18Z lstewart $"); | 57__FBSDID("$FreeBSD: head/sys/netinet/cc/cc_vegas.c 220592 2011-04-13 11:28:46Z pluknet $"); |
58 59#include <sys/param.h> 60#include <sys/kernel.h> 61#include <sys/khelp.h> 62#include <sys/malloc.h> 63#include <sys/module.h> 64#include <sys/queue.h> 65#include <sys/socket.h> --- 34 unchanged lines hidden (view full) --- 100 101static int32_t ertt_id; 102 103static VNET_DEFINE(uint32_t, vegas_alpha) = 1; 104static VNET_DEFINE(uint32_t, vegas_beta) = 3; 105#define V_vegas_alpha VNET(vegas_alpha) 106#define V_vegas_beta VNET(vegas_beta) 107 | 58 59#include <sys/param.h> 60#include <sys/kernel.h> 61#include <sys/khelp.h> 62#include <sys/malloc.h> 63#include <sys/module.h> 64#include <sys/queue.h> 65#include <sys/socket.h> --- 34 unchanged lines hidden (view full) --- 100 101static int32_t ertt_id; 102 103static VNET_DEFINE(uint32_t, vegas_alpha) = 1; 104static VNET_DEFINE(uint32_t, vegas_beta) = 3; 105#define V_vegas_alpha VNET(vegas_alpha) 106#define V_vegas_beta VNET(vegas_beta) 107 |
108MALLOC_DECLARE(M_VEGAS); 109MALLOC_DEFINE(M_VEGAS, "vegas data", | 108static MALLOC_DEFINE(M_VEGAS, "vegas data", |
110 "Per connection data required for the Vegas congestion control algorithm"); 111 112struct cc_algo vegas_cc_algo = { 113 .name = "vegas", 114 .ack_received = vegas_ack_received, 115 .cb_destroy = vegas_cb_destroy, 116 .cb_init = vegas_cb_init, 117 .cong_signal = vegas_cong_signal, --- 191 unchanged lines hidden --- | 109 "Per connection data required for the Vegas congestion control algorithm"); 110 111struct cc_algo vegas_cc_algo = { 112 .name = "vegas", 113 .ack_received = vegas_ack_received, 114 .cb_destroy = vegas_cb_destroy, 115 .cb_init = vegas_cb_init, 116 .cong_signal = vegas_cong_signal, --- 191 unchanged lines hidden --- |