[POWERPC] 83xx: Fix wrong USB phy type in mpc837xrdb dts
[linux-2.6/openmoko-kernel/knife-kernel.git] / include / net / ipip.h
blob549e132bca9c834638416182698169175859e80c
1 #ifndef __NET_IPIP_H
2 #define __NET_IPIP_H 1
4 #include <linux/if_tunnel.h>
5 #include <net/ip.h>
7 /* Keep error state on tunnel for 30 sec */
8 #define IPTUNNEL_ERR_TIMEO (30*HZ)
10 struct ip_tunnel
12 struct ip_tunnel *next;
13 struct net_device *dev;
14 struct net_device_stats stat;
16 int recursion; /* Depth of hard_start_xmit recursion */
17 int err_count; /* Number of arrived ICMP errors */
18 unsigned long err_time; /* Time when the last ICMP error arrived */
20 /* These four fields used only by GRE */
21 __u32 i_seqno; /* The last seen seqno */
22 __u32 o_seqno; /* The last output seqno */
23 int hlen; /* Precalculated GRE header length */
24 int mlink;
26 struct ip_tunnel_parm parms;
29 #define IPTUNNEL_XMIT() do { \
30 int err; \
31 int pkt_len = skb->len; \
33 skb->ip_summed = CHECKSUM_NONE; \
34 ip_select_ident(iph, &rt->u.dst, NULL); \
36 err = ip_local_out(skb); \
37 if (net_xmit_eval(err) == 0) { \
38 stats->tx_bytes += pkt_len; \
39 stats->tx_packets++; \
40 } else { \
41 stats->tx_errors++; \
42 stats->tx_aborted_errors++; \
43 } \
44 } while (0)
46 #endif