]> nv-tegra.nvidia Code Review - linux-2.6.git/blobdiff - include/net/ipip.h
tunnels: Optimize tx path
[linux-2.6.git] / include / net / ipip.h
index 87acf8f3a15527cd0446e1dd6f75bdd60a636ba4..0159221a85093074f26fcbdbd487f0431504a28a 100644 (file)
@@ -42,9 +42,9 @@ struct ip_tunnel_prl_entry
        ip_select_ident(iph, &rt->u.dst, NULL);                         \
                                                                        \
        err = ip_local_out(skb);                                        \
-       if (net_xmit_eval(err) == 0) {                                  \
-               stats->tx_bytes += pkt_len;                             \
-               stats->tx_packets++;                                    \
+       if (likely(net_xmit_eval(err) == 0)) {                          \
+               txq->tx_bytes += pkt_len;                               \
+               txq->tx_packets++;                                      \
        } else {                                                        \
                stats->tx_errors++;                                     \
                stats->tx_aborted_errors++;                             \