Go to the documentation of this file.
4 #include <linux/if_tunnel.h>
9 #define IPTUNNEL_ERR_TIMEO (30*HZ)
35 #ifdef CONFIG_IPV6_SIT_6RD
51 #define __IPTUNNEL_XMIT(stats1, stats2) do { \
53 int pkt_len = skb->len - skb_transport_offset(skb); \
55 skb->ip_summed = CHECKSUM_NONE; \
56 ip_select_ident(iph, &rt->dst, NULL); \
58 err = ip_local_out(skb); \
59 if (likely(net_xmit_eval(err) == 0)) { \
60 u64_stats_update_begin(&(stats1)->syncp); \
61 (stats1)->tx_bytes += pkt_len; \
62 (stats1)->tx_packets++; \
63 u64_stats_update_end(&(stats1)->syncp); \
65 (stats2)->tx_errors++; \
66 (stats2)->tx_aborted_errors++; \
70 #define IPTUNNEL_XMIT() __IPTUNNEL_XMIT(txq, stats)