Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
inet_lro.c File Reference
#include <linux/module.h>
#include <linux/if_vlan.h>
#include <linux/inet_lro.h>

Go to the source code of this file.

Macros

#define TCP_HDR_LEN(tcph)   (tcph->doff << 2)
 
#define IP_HDR_LEN(iph)   (iph->ihl << 2)
 
#define TCP_PAYLOAD_LENGTH(iph, tcph)   (ntohs(iph->tot_len) - IP_HDR_LEN(iph) - TCP_HDR_LEN(tcph))
 
#define IPH_LEN_WO_OPTIONS   5
 
#define TCPH_LEN_WO_OPTIONS   5
 
#define TCPH_LEN_W_TIMESTAMP   8
 
#define LRO_MAX_PG_HLEN   64
 
#define LRO_INC_STATS(lro_mgr, attr)   { lro_mgr->stats.attr++; }
 

Functions

 MODULE_LICENSE ("GPL")
 
 MODULE_AUTHOR ("Jan-Bernd Themann <[email protected]>")
 
 MODULE_DESCRIPTION ("Large Receive Offload (ipv4 / tcp)")
 
void lro_receive_skb (struct net_lro_mgr *lro_mgr, struct sk_buff *skb, void *priv)
 
 EXPORT_SYMBOL (lro_receive_skb)
 
void lro_receive_frags (struct net_lro_mgr *lro_mgr, struct skb_frag_struct *frags, int len, int true_size, void *priv, __wsum sum)
 
 EXPORT_SYMBOL (lro_receive_frags)
 
void lro_flush_all (struct net_lro_mgr *lro_mgr)
 
 EXPORT_SYMBOL (lro_flush_all)
 
void lro_flush_pkt (struct net_lro_mgr *lro_mgr, struct iphdr *iph, struct tcphdr *tcph)
 
 EXPORT_SYMBOL (lro_flush_pkt)
 

Macro Definition Documentation

#define IP_HDR_LEN (   iph)    (iph->ihl << 2)

Definition at line 38 of file inet_lro.c.

#define IPH_LEN_WO_OPTIONS   5

Definition at line 42 of file inet_lro.c.

#define LRO_INC_STATS (   lro_mgr,
  attr 
)    { lro_mgr->stats.attr++; }

Definition at line 48 of file inet_lro.c.

#define LRO_MAX_PG_HLEN   64

Definition at line 46 of file inet_lro.c.

#define TCP_HDR_LEN (   tcph)    (tcph->doff << 2)

Definition at line 37 of file inet_lro.c.

#define TCP_PAYLOAD_LENGTH (   iph,
  tcph 
)    (ntohs(iph->tot_len) - IP_HDR_LEN(iph) - TCP_HDR_LEN(tcph))

Definition at line 39 of file inet_lro.c.

#define TCPH_LEN_W_TIMESTAMP   8

Definition at line 44 of file inet_lro.c.

#define TCPH_LEN_WO_OPTIONS   5

Definition at line 43 of file inet_lro.c.

Function Documentation

EXPORT_SYMBOL ( lro_receive_skb  )
EXPORT_SYMBOL ( lro_receive_frags  )
EXPORT_SYMBOL ( lro_flush_all  )
EXPORT_SYMBOL ( lro_flush_pkt  )
void lro_flush_all ( struct net_lro_mgr lro_mgr)

Definition at line 527 of file inet_lro.c.

void lro_flush_pkt ( struct net_lro_mgr lro_mgr,
struct iphdr iph,
struct tcphdr tcph 
)

Definition at line 539 of file inet_lro.c.

void lro_receive_frags ( struct net_lro_mgr lro_mgr,
struct skb_frag_struct frags,
int  len,
int  true_size,
void priv,
__wsum  sum 
)

Definition at line 510 of file inet_lro.c.

void lro_receive_skb ( struct net_lro_mgr lro_mgr,
struct sk_buff skb,
void priv 
)

Definition at line 497 of file inet_lro.c.

MODULE_AUTHOR ( "Jan-Bernd Themann <[email protected]>"  )
MODULE_DESCRIPTION ( "Large Receive Offload (ipv4 / tcp)"  )
MODULE_LICENSE ( "GPL"  )