summaryrefslogtreecommitdiffstats
path: root/drivers/vhost
diff options
context:
space:
mode:
authorEric Dumazet <eric.dumazet@gmail.com>2011-07-18 03:16:33 +0000
committerDavid S. Miller <davem@davemloft.net>2011-07-18 10:41:18 -0700
commit5c74501f76360ce6f410730b9b5e5976f38e8504 (patch)
tree4965fe06affeaa121afa4a18b0644cbeb9e7d639 /drivers/vhost
parentd3aaeb38c40e5a6c08dd31a1b64da65c4352be36 (diff)
downloadlinux-5c74501f76360ce6f410730b9b5e5976f38e8504.tar.gz
linux-5c74501f76360ce6f410730b9b5e5976f38e8504.tar.bz2
linux-5c74501f76360ce6f410730b9b5e5976f38e8504.zip
ipv4: save cpu cycles from check_leaf()
Compiler is not smart enough to avoid double BSWAP instructions in ntohl(inet_make_mask(plen)). Lets cache this value in struct leaf_info, (fill a hole on 64bit arches) With route cache disabled, this saves ~2% of cpu in udpflood bench on x86_64 machine. Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/vhost')
0 files changed, 0 insertions, 0 deletions