aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/bnx2x_link.c
diff options
context:
space:
mode:
authorEric Dumazet <eric.dumazet@gmail.com>2010-06-14 19:35:21 +0000
committerDavid S. Miller <davem@davemloft.net>2010-06-14 23:13:08 -0700
commitd6cc1d642de9284cb26488ea390d915b50ee2504 (patch)
tree7652471f541c11f63f54e282a04a9cba614e8d5e /drivers/net/bnx2x_link.c
parentloopback: Implement 64bit stats on 32bit arches (diff)
downloadlinux-dev-d6cc1d642de9284cb26488ea390d915b50ee2504.tar.xz
linux-dev-d6cc1d642de9284cb26488ea390d915b50ee2504.zip
inetpeer: various changes
Try to reduce cache line contentions in peer management, to reduce IP defragmentation overhead. - peer_fake_node is marked 'const' to make sure its not modified. (tested with CONFIG_DEBUG_RODATA=y) - Group variables in two structures to reduce number of dirtied cache lines. One named "peers" for avl tree root, its number of entries, and associated lock. (candidate for RCU conversion) - A second one named "unused_peers" for unused list and its lock - Add a !list_empty() test in unlink_from_unused() to avoid taking lock when entry is not unused. - Use atomic_dec_and_lock() in inet_putpeer() to avoid taking lock in some cases. Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions