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)
commit9695fe6f21e3b06a7086f62851c0df16369fc223
tree489d51590e941faf23664efac7d9480bace8663e
parent153890b41b0ad467a89a77d48bb96f6bc3b14120
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