]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nf_tables: simplify NLM_F_CREATE handling
authorPablo Neira Ayuso <pablo@netfilter.org>
Fri, 3 Aug 2018 11:35:36 +0000 (13:35 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 3 Aug 2018 19:15:11 +0000 (21:15 +0200)
commitde30f6a0fa60c4ee0fe8968853f042f322ea37a8
tree3ff814ef7987f171a8317605557c606e67f67a03
parent1a00e878cd8888e64794486b828b273fa9a4773e
netfilter: nf_tables: simplify NLM_F_CREATE handling

* From nf_tables_newchain(), codepath provides context that allows us to
  infer if we are updating a chain (in that case, no module autoload is
  required) or adding a new one (then, module autoload is indeed
  needed).
* We only need it in one single spot in nf_tables_newrule().
* Not needed for nf_tables_newset() at all.

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