Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
ipip.h File Reference
#include <linux/if_tunnel.h>
#include <net/gro_cells.h>
#include <net/ip.h>

Go to the source code of this file.

Data Structures

struct  ip_tunnel_6rd_parm
 
struct  ip_tunnel
 
struct  ip_tunnel_prl_entry
 

Macros

#define IPTUNNEL_ERR_TIMEO   (30*HZ)
 
#define __IPTUNNEL_XMIT(stats1, stats2)
 
#define IPTUNNEL_XMIT()   __IPTUNNEL_XMIT(txq, stats)
 

Macro Definition Documentation

#define __IPTUNNEL_XMIT (   stats1,
  stats2 
)
Value:
do { \
int err; \
int pkt_len = skb->len - skb_transport_offset(skb); \
\
skb->ip_summed = CHECKSUM_NONE; \
ip_select_ident(iph, &rt->dst, NULL); \
\
err = ip_local_out(skb); \
if (likely(net_xmit_eval(err) == 0)) { \
u64_stats_update_begin(&(stats1)->syncp); \
(stats1)->tx_bytes += pkt_len; \
(stats1)->tx_packets++; \
u64_stats_update_end(&(stats1)->syncp); \
} else { \
(stats2)->tx_errors++; \
(stats2)->tx_aborted_errors++; \
} \
} while (0)

Definition at line 51 of file ipip.h.

#define IPTUNNEL_ERR_TIMEO   (30*HZ)

Definition at line 9 of file ipip.h.

#define IPTUNNEL_XMIT ( )    __IPTUNNEL_XMIT(txq, stats)

Definition at line 70 of file ipip.h.