[TCP/DCCP]: Introduce net_xmit_eval
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / include / net / ipip.h
index f490c3cbe377310a5d8bde2d0e2c057aa0fa778a..84058858eea7bbe20b36bfe1667541d09e592da8 100644 (file)
@@ -35,7 +35,7 @@ struct ip_tunnel
        ip_send_check(iph);                                             \
                                                                        \
        err = NF_HOOK(PF_INET, NF_IP_LOCAL_OUT, skb, NULL, rt->u.dst.dev, dst_output);\
-       if (err == NET_XMIT_SUCCESS || err == NET_XMIT_CN) {            \
+       if (net_xmit_eval(err) == 0) {                                  \
                stats->tx_bytes += pkt_len;                             \
                stats->tx_packets++;                                    \
        } else {                                                        \