summaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_output.c
diff options
context:
space:
mode:
authorStephen Hemminger2008-04-10 11:56:38 +0200
committerDavid S. Miller2008-04-10 11:56:38 +0200
commit15be75cdb5db442d0e33d37b20832b88f3ccd383 (patch)
tree83fc9261da859ecf3d6dcad29dadc78f481f7d7f /net/ipv4/tcp_output.c
parent[IPV6]: Remove unused declarations in include/net/ip6_route.h. (diff)
downloadkernel-qcow2-linux-15be75cdb5db442d0e33d37b20832b88f3ccd383.tar.gz
kernel-qcow2-linux-15be75cdb5db442d0e33d37b20832b88f3ccd383.tar.xz
kernel-qcow2-linux-15be75cdb5db442d0e33d37b20832b88f3ccd383.zip
IPV4: fib_trie use vmalloc for large tnodes
Use vmalloc rather than alloc_pages to avoid wasting memory. The problem is that tnode structure has a power of 2 sized array, plus a header. So the current code wastes almost half the memory allocated because it always needs the next bigger size to hold that small header. This is similar to an earlier patch by Eric, but instead of a list and lock, I used a workqueue to handle the fact that vfree can't be done in interrupt context. Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_output.c')
0 files changed, 0 insertions, 0 deletions