netfilter: nf_tables: add nft_chain_add()
authorPablo Neira Ayuso <pablo@netfilter.org>
Tue, 30 Jun 2020 17:21:28 +0000 (19:21 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 3 Jul 2020 23:18:42 +0000 (01:18 +0200)
commit04b7db414490ea9254d0c1d8930ea9571f8ce9f0
treef3471abdf871a899449b2bcd462874c369bfd00c
parent67c49de4ad862c567088c5119cf125e566f56e7f
netfilter: nf_tables: add nft_chain_add()

This patch adds a helper function to add the chain to the hashtable and
the chain list.

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