]> git.baikalelectronics.ru Git - kernel.git/commit
net: sched: use kvmalloc() for class hash tables
authorEric Dumazet <edumazet@google.com>
Tue, 22 Aug 2017 19:26:46 +0000 (12:26 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 22 Aug 2017 21:37:24 +0000 (14:37 -0700)
commit0e6381b42f715fc6088f0b10da913f540686f55d
tree489d51590e941faf23664efac7d9480bace8663e
parent4f82c55503b01475676473ede16d3aedfd83c84f
net: sched: use kvmalloc() for class hash tables

High order GFP_KERNEL allocations can stress the host badly.

Use modern kvmalloc_array()/kvfree() instead of custom
allocations.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_api.c