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

Go to the source code of this file.

Data Structures

struct  tfrc_tx_hist_entry
 
struct  tfrc_rx_hist_entry
 
struct  tfrc_rx_hist
 

Macros

#define SUB16(a, b)   (((a) + 16 - (b)) & 0xF)
 
#define TFRC_NDUPACK   3
 
#define rtt_sample_prev   loss_start
 

Functions

int tfrc_tx_hist_add (struct tfrc_tx_hist_entry **headp, u64 seqno)
 
void tfrc_tx_hist_purge (struct tfrc_tx_hist_entry **headp)
 
void tfrc_rx_hist_add_packet (struct tfrc_rx_hist *h, const struct sk_buff *skb, const u64 ndp)
 
int tfrc_rx_hist_duplicate (struct tfrc_rx_hist *h, struct sk_buff *skb)
 
int tfrc_rx_handle_loss (struct tfrc_rx_hist *h, struct tfrc_loss_hist *lh, struct sk_buff *skb, const u64 ndp, u32(*first_li)(struct sock *sk), struct sock *sk)
 
u32 tfrc_rx_hist_sample_rtt (struct tfrc_rx_hist *h, const struct sk_buff *skb)
 
int tfrc_rx_hist_alloc (struct tfrc_rx_hist *h)
 
void tfrc_rx_hist_purge (struct tfrc_rx_hist *h)
 

Macro Definition Documentation

#define rtt_sample_prev   loss_start

Definition at line 98 of file packet_history.h.

#define SUB16 (   a,
  b 
)    (((a) + 16 - (b)) & 0xF)

Definition at line 67 of file packet_history.h.

#define TFRC_NDUPACK   3

Definition at line 70 of file packet_history.h.

Function Documentation

int tfrc_rx_handle_loss ( struct tfrc_rx_hist h,
struct tfrc_loss_hist lh,
struct sk_buff skb,
const u64  ndp,
u32(*)(struct sock *sk first_li,
struct sock sk 
)
void tfrc_rx_hist_add_packet ( struct tfrc_rx_hist h,
const struct sk_buff skb,
const u64  ndp 
)

Definition at line 123 of file packet_history.c.

int tfrc_rx_hist_alloc ( struct tfrc_rx_hist h)

Definition at line 349 of file packet_history.c.

int tfrc_rx_hist_duplicate ( struct tfrc_rx_hist h,
struct sk_buff skb 
)

Definition at line 133 of file packet_history.c.

void tfrc_rx_hist_purge ( struct tfrc_rx_hist h)

Definition at line 370 of file packet_history.c.

u32 tfrc_rx_hist_sample_rtt ( struct tfrc_rx_hist h,
const struct sk_buff skb 
)

tfrc_rx_hist_sample_rtt - Sample RTT from timestamp / CCVal Based on ideas presented in RFC 4342, 8.1. Returns 0 if it was not able to compute a sample with given data - calling function should check this.

Definition at line 404 of file packet_history.c.

int tfrc_tx_hist_add ( struct tfrc_tx_hist_entry **  headp,
u64  seqno 
)

Definition at line 62 of file packet_history.c.

void tfrc_tx_hist_purge ( struct tfrc_tx_hist_entry **  headp)

Definition at line 75 of file packet_history.c.