Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
tcp_cong.c File Reference
#include <linux/module.h>
#include <linux/mm.h>
#include <linux/types.h>
#include <linux/list.h>
#include <linux/gfp.h>
#include <net/tcp.h>

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   "TCP: " fmt
 

Functions

int tcp_register_congestion_control (struct tcp_congestion_ops *ca)
 
 EXPORT_SYMBOL_GPL (tcp_register_congestion_control)
 
void tcp_unregister_congestion_control (struct tcp_congestion_ops *ca)
 
 EXPORT_SYMBOL_GPL (tcp_unregister_congestion_control)
 
void tcp_init_congestion_control (struct sock *sk)
 
void tcp_cleanup_congestion_control (struct sock *sk)
 
int tcp_set_default_congestion_control (const char *name)
 
 late_initcall (tcp_congestion_default)
 
void tcp_get_available_congestion_control (char *buf, size_t maxlen)
 
void tcp_get_default_congestion_control (char *name)
 
void tcp_get_allowed_congestion_control (char *buf, size_t maxlen)
 
int tcp_set_allowed_congestion_control (char *val)
 
int tcp_set_congestion_control (struct sock *sk, const char *name)
 
bool tcp_is_cwnd_limited (const struct sock *sk, u32 in_flight)
 
 EXPORT_SYMBOL_GPL (tcp_is_cwnd_limited)
 
void tcp_slow_start (struct tcp_sock *tp)
 
 EXPORT_SYMBOL_GPL (tcp_slow_start)
 
void tcp_cong_avoid_ai (struct tcp_sock *tp, u32 w)
 
 EXPORT_SYMBOL_GPL (tcp_cong_avoid_ai)
 
void tcp_reno_cong_avoid (struct sock *sk, u32 ack, u32 in_flight)
 
 EXPORT_SYMBOL_GPL (tcp_reno_cong_avoid)
 
u32 tcp_reno_ssthresh (struct sock *sk)
 
 EXPORT_SYMBOL_GPL (tcp_reno_ssthresh)
 
u32 tcp_reno_min_cwnd (const struct sock *sk)
 
 EXPORT_SYMBOL_GPL (tcp_reno_min_cwnd)
 
 EXPORT_SYMBOL_GPL (tcp_init_congestion_ops)
 

Variables

int sysctl_tcp_max_ssthresh = 0
 
struct tcp_congestion_ops tcp_reno
 
struct tcp_congestion_ops tcp_init_congestion_ops
 

Macro Definition Documentation

#define pr_fmt (   fmt)    "TCP: " fmt

Definition at line 9 of file tcp_cong.c.

Function Documentation

EXPORT_SYMBOL_GPL ( tcp_register_congestion_control  )
EXPORT_SYMBOL_GPL ( tcp_unregister_congestion_control  )
EXPORT_SYMBOL_GPL ( tcp_is_cwnd_limited  )
EXPORT_SYMBOL_GPL ( tcp_slow_start  )
EXPORT_SYMBOL_GPL ( tcp_cong_avoid_ai  )
EXPORT_SYMBOL_GPL ( tcp_reno_cong_avoid  )
EXPORT_SYMBOL_GPL ( tcp_reno_ssthresh  )
EXPORT_SYMBOL_GPL ( tcp_reno_min_cwnd  )
EXPORT_SYMBOL_GPL ( tcp_init_congestion_ops  )
late_initcall ( tcp_congestion_default  )
void tcp_cleanup_congestion_control ( struct sock sk)

Definition at line 103 of file tcp_cong.c.

void tcp_cong_avoid_ai ( struct tcp_sock tp,
u32  w 
)

Definition at line 345 of file tcp_cong.c.

void tcp_get_allowed_congestion_control ( char buf,
size_t  maxlen 
)

Definition at line 178 of file tcp_cong.c.

void tcp_get_available_congestion_control ( char buf,
size_t  maxlen 
)

Definition at line 149 of file tcp_cong.c.

void tcp_get_default_congestion_control ( char name)

Definition at line 165 of file tcp_cong.c.

void tcp_init_congestion_control ( struct sock sk)

Definition at line 79 of file tcp_cong.c.

bool tcp_is_cwnd_limited ( const struct sock sk,
u32  in_flight 
)

Definition at line 283 of file tcp_cong.c.

int tcp_register_congestion_control ( struct tcp_congestion_ops ca)

Definition at line 40 of file tcp_cong.c.

void tcp_reno_cong_avoid ( struct sock sk,
u32  ack,
u32  in_flight 
)

Definition at line 364 of file tcp_cong.c.

u32 tcp_reno_min_cwnd ( const struct sock sk)

Definition at line 400 of file tcp_cong.c.

u32 tcp_reno_ssthresh ( struct sock sk)

Definition at line 392 of file tcp_cong.c.

int tcp_set_allowed_congestion_control ( char val)

Definition at line 197 of file tcp_cong.c.

int tcp_set_congestion_control ( struct sock sk,
const char name 
)

Definition at line 237 of file tcp_cong.c.

int tcp_set_default_congestion_control ( const char name)

Definition at line 113 of file tcp_cong.c.

void tcp_slow_start ( struct tcp_sock tp)

Definition at line 308 of file tcp_cong.c.

void tcp_unregister_congestion_control ( struct tcp_congestion_ops ca)

Definition at line 70 of file tcp_cong.c.

Variable Documentation

int sysctl_tcp_max_ssthresh = 0

Definition at line 18 of file tcp_cong.c.

struct tcp_congestion_ops tcp_init_congestion_ops
Initial value:
= {
.name = "",
.owner = THIS_MODULE,
.ssthresh = tcp_reno_ssthresh,
.cong_avoid = tcp_reno_cong_avoid,
.min_cwnd = tcp_reno_min_cwnd,
}

Definition at line 420 of file tcp_cong.c.

Initial value:
= {
.name = "reno",
.owner = THIS_MODULE,
.ssthresh = tcp_reno_ssthresh,
.cong_avoid = tcp_reno_cong_avoid,
.min_cwnd = tcp_reno_min_cwnd,
}

Definition at line 407 of file tcp_cong.c.