From: Eric Dumazet Date: Mon, 5 Oct 2009 07:11:22 +0000 (-0700) Subject: tunnels: Optimize tx path X-Git-Tag: v2.6.33-rc1~388^2~939 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0bfbedb14a8a96c529341bec88991a92b41fac72;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed