diff options
author | Eric Dumazet <edumazet@google.com> | 2014-06-24 05:32:48 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-06-25 16:37:24 -0700 |
commit | f6d8cb2eeded7df18b821a321d4cd1cdd1754bf8 (patch) | |
tree | 20df27128ea73c6c27f5ad672c112b4dbcff61b1 /lib/net_utils.c | |
parent | bb446c19fefd7b4435adb12a9dd7666adc5b553a (diff) | |
download | linux-f6d8cb2eeded7df18b821a321d4cd1cdd1754bf8.tar.bz2 |
inet: reduce TLB pressure for listeners
It seems overkill to use vmalloc() for typical listeners with less than
2048 hash buckets. Try kmalloc() and fallback to vmalloc() to reduce TLB
pressure.
Use kvfree() helper as it is now available.
Use ilog2() instead of a loop.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib/net_utils.c')
0 files changed, 0 insertions, 0 deletions