Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
tfrc.h File Reference
#include <linux/types.h>
#include <linux/math64.h>
#include "../../dccp.h"
#include "loss_interval.h"
#include "packet_history.h"

Go to the source code of this file.

Macros

#define tfrc_pr_debug(format, a...)
 
#define tfrc_lib_init()   (0)
 
#define tfrc_lib_exit()
 

Functions

u32 tfrc_calc_x (u16 s, u32 R, u32 p)
 
u32 tfrc_calc_x_reverse_lookup (u32 fvalue)
 
u32 tfrc_invert_loss_event_rate (u32 loss_event_rate)
 
int tfrc_tx_packet_history_init (void)
 
void tfrc_tx_packet_history_exit (void)
 
int tfrc_rx_packet_history_init (void)
 
void tfrc_rx_packet_history_exit (void)
 
int tfrc_li_init (void)
 
void tfrc_li_exit (void)
 

Macro Definition Documentation

#define tfrc_lib_exit (   void)

Definition at line 75 of file tfrc.h.

#define tfrc_lib_init (   void)    (0)

Definition at line 74 of file tfrc.h.

#define tfrc_pr_debug (   format,
  a... 
)

Definition at line 27 of file tfrc.h.

Function Documentation

u32 tfrc_calc_x ( u16  s,
u32  R,
u32  p 
)

tfrc_calc_x - Calculate the send rate as per section 3.1 of RFC3448 : packet size in bytes : RTT scaled by 1000000 (i.e., microseconds) : loss ratio estimate scaled by 1000000

Returns X_calc in bytes per second (not scaled).

Definition at line 617 of file tfrc_equation.c.

u32 tfrc_calc_x_reverse_lookup ( u32  fvalue)

tfrc_calc_x_reverse_lookup - try to find p given f(p) : function value to match, scaled by 1000000

Returns closest match for p, also scaled by 1000000

Definition at line 666 of file tfrc_equation.c.

u32 tfrc_invert_loss_event_rate ( u32  loss_event_rate)

tfrc_invert_loss_event_rate - Compute p so that 10^6 corresponds to 100% When is large, there is a chance that p is truncated to 0. To avoid re-entering slow-start in that case, we set p = TFRC_SMALLEST_P > 0.

Definition at line 698 of file tfrc_equation.c.

void tfrc_li_exit ( void  )

Definition at line 179 of file loss_interval.c.

int tfrc_li_init ( void  )

Definition at line 171 of file loss_interval.c.

void tfrc_rx_packet_history_exit ( void  )

Definition at line 102 of file packet_history.c.

int tfrc_rx_packet_history_init ( void  )

Definition at line 94 of file packet_history.c.

void tfrc_tx_packet_history_exit ( void  )

Definition at line 54 of file packet_history.c.

int tfrc_tx_packet_history_init ( void  )

Definition at line 46 of file packet_history.c.