netfilter: nf_tables: add flow table netlink frontend
authorPablo Neira Ayuso <pablo@netfilter.org>
Sun, 7 Jan 2018 00:04:07 +0000 (01:04 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 8 Jan 2018 17:11:06 +0000 (18:11 +0100)
commit3b49e2e94e6ebb8b23d0955d9e898254455734f8
tree4813ba6f535ed50d5e4472fcc15d09c755726ac2
parent90964016e5d34758033e75884e41d68ccb93212e
netfilter: nf_tables: add flow table netlink frontend

This patch introduces a netlink control plane to create, delete and dump
flow tables. Flow tables are identified by name, this name is used from
rules to refer to an specific flow table. Flow tables use the rhashtable
class and a generic garbage collector to remove expired entries.

This also adds the infrastructure to add different flow table types, so
we can add one for each layer 3 protocol family.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/net/netfilter/nf_flow_table.h [new file with mode: 0644]
include/net/netfilter/nf_tables.h
include/uapi/linux/netfilter/nf_tables.h
net/netfilter/nf_tables_api.c