]> 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)
commit47118004352c168dfe8d2d09de9362cf30e9ae37
tree489d51590e941faf23664efac7d9480bace8663e
parentdc10cca7731ef1175ab8b0a953f8947e34fbcd1e
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