netfilter: nf_tables: allow large allocations for new sets
authorPablo Neira Ayuso <pablo@netfilter.org>
Mon, 22 May 2017 16:47:59 +0000 (17:47 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 29 May 2017 10:46:20 +0000 (12:46 +0200)
commit1ff75a3e9ab72368fc3ad63d9bc6c7518cbd1389
treeb09ba0c2a482cbcc9dcd55f5b5709f806292a8ed
parent2111515abc46cb3e18b22d8551067029acfd1f55
netfilter: nf_tables: allow large allocations for new sets

The new fixed size hashtable backend implementation may result in a
large array of buckets that would spew splats from mm. Update this code
to fall back on vmalloc in case the memory allocation order is too
costly.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_api.c