summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorEric Dumazet2009-10-05 09:11:22 +0200
committerDavid S. Miller2009-10-05 09:21:57 +0200
commit0bfbedb14a8a96c529341bec88991a92b41fac72 (patch)
treed52ccb4758fd58cbf74c7a9001e6885275d3ddc8 /lib
parentipv4: fib table algorithm performance improvement (diff)
downloadkernel-qcow2-linux-0bfbedb14a8a96c529341bec88991a92b41fac72.tar.gz
kernel-qcow2-linux-0bfbedb14a8a96c529341bec88991a92b41fac72.tar.xz
kernel-qcow2-linux-0bfbedb14a8a96c529341bec88991a92b41fac72.zip
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>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions