]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9ad1e6666bb88e365286a6b3571c7902b88a03d5
treeb09ba0c2a482cbcc9dcd55f5b5709f806292a8ed
parent4bdcc23dccf690e65e2b373b625d0dd53ac5cee8
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