inet: reduce TLB pressure for listeners
authorEric Dumazet <edumazet@google.com>
Tue, 24 Jun 2014 12:32:48 +0000 (05:32 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 25 Jun 2014 23:37:24 +0000 (16:37 -0700)
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>

No differences found