Eric Dumazet 0bfbedb14a tunnels: Optimize tx path
We currently dirty a cache line to update tunnel device stats
(tx_packets/tx_bytes). We better use the txq->tx_bytes/tx_packets
counters that already are present in cpu cache, in the cache
line shared with txq->_xmit_lock

This patch extends IPTUNNEL_XMIT() macro to use txq pointer
provided by the caller.

Also &tunnel->dev->stats can be replaced by &dev->stats

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2009-10-05 00:21:57 -07:00
..
2008-10-29 12:52:50 -07:00
2009-09-14 17:03:05 -07:00
2009-09-14 17:03:05 -07:00
2008-11-25 17:35:18 -08:00
2009-09-14 17:03:05 -07:00
2009-09-14 17:03:05 -07:00
2009-09-14 17:03:05 -07:00
2009-09-02 18:05:33 -07:00
2009-09-24 15:39:22 -07:00
2009-09-14 17:03:05 -07:00
2009-06-03 02:51:04 -07:00
2009-08-05 10:42:58 -07:00
2009-09-14 17:03:05 -07:00
2009-10-05 00:21:57 -07:00
2009-09-15 01:30:10 -07:00
2009-09-14 17:03:05 -07:00
2009-09-14 17:03:05 -07:00
2008-11-25 17:59:52 -08:00
2009-06-03 02:51:04 -07:00
2009-06-03 02:51:04 -07:00