]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf034159f12a9f320277cc44e46392f9e2f915735
tree4813ba6f535ed50d5e4472fcc15d09c755726ac2
parent22899617ab5935524b1fee0834d56c1dc6558fee
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