Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
loss_interval.c File Reference
#include <net/sock.h>
#include "tfrc.h"

Go to the source code of this file.

Functions

void tfrc_lh_cleanup (struct tfrc_loss_hist *lh)
 
u8 tfrc_lh_update_i_mean (struct tfrc_loss_hist *lh, struct sk_buff *skb)
 
int tfrc_lh_interval_add (struct tfrc_loss_hist *lh, struct tfrc_rx_hist *rh, u32(*calc_first_li)(struct sock *), struct sock *sk)
 
int __init tfrc_li_init (void)
 
void tfrc_li_exit (void)
 

Function Documentation

void tfrc_lh_cleanup ( struct tfrc_loss_hist lh)

Definition at line 49 of file loss_interval.c.

int tfrc_lh_interval_add ( struct tfrc_loss_hist lh,
struct tfrc_rx_hist rh,
u32(*)(struct sock *)  calc_first_li,
struct sock sk 
)

tfrc_lh_interval_add - Insert new record into the Loss Interval database : Loss Interval database : Receive history containing a fresh loss event : Caller-dependent routine to compute length of first interval : Used by in caller-specific way (subtyping)

Updates I_mean and returns 1 if a new interval has in fact been added to .

Definition at line 139 of file loss_interval.c.

u8 tfrc_lh_update_i_mean ( struct tfrc_loss_hist lh,
struct sk_buff skb 
)

tfrc_lh_update_i_mean - Update the `open' loss interval I_0 For recomputing p: returns `true' if p > p_prev <=> 1/p < 1/p_prev

Definition at line 88 of file loss_interval.c.

void tfrc_li_exit ( void  )

Definition at line 179 of file loss_interval.c.

int __init tfrc_li_init ( void  )

Definition at line 171 of file loss_interval.c.