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) 2014 Midori Kato <katoon@sfc.wide.ad.jp> 6 * Copyright (c) 2014 The FreeBSD Foundation 7 * All rights reserved. 8 * --- 23 unchanged lines hidden (view full) --- 32 * An implementation of the DCTCP algorithm for FreeBSD, based on 33 * "Data Center TCP (DCTCP)" by M. Alizadeh, A. Greenberg, D. A. Maltz, 34 * J. Padhye, P. Patel, B. Prabhakar, S. Sengupta, and M. Sridharan., 35 * in ACM Conference on SIGCOMM 2010, New York, USA, 36 * Originally released as the contribution of Microsoft Research project. 37 */ 38 39#include <sys/cdefs.h> |
40__FBSDID("$FreeBSD: head/sys/netinet/cc/cc_dctcp.c 294931 2016-01-27 17:59:39Z glebius $"); |
41 42#include <sys/param.h> 43#include <sys/kernel.h> 44#include <sys/malloc.h> 45#include <sys/module.h> 46#include <sys/socket.h> 47#include <sys/socketvar.h> 48#include <sys/sysctl.h> 49#include <sys/systm.h> 50 51#include <net/vnet.h> 52 53#include <netinet/tcp.h> 54#include <netinet/tcp_seq.h> 55#include <netinet/tcp_var.h> |
56#include <netinet/cc/cc.h> |
57#include <netinet/cc/cc_module.h> 58 59#define CAST_PTR_INT(X) (*((int*)(X))) 60 61#define MAX_ALPHA_VALUE 1024 62static VNET_DEFINE(uint32_t, dctcp_alpha) = 0; 63#define V_dctcp_alpha VNET(dctcp_alpha) 64static VNET_DEFINE(uint32_t, dctcp_shift_g) = 4; --- 408 unchanged lines hidden --- |