]> 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)
commit3b876e20187adad3dfbe51aafac47df57fc70f4a
tree4813ba6f535ed50d5e4472fcc15d09c755726ac2
parent13cad16eb875c237a389760a1961c26059a4478b
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