]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: add generic flow table infrastructure
authorPablo Neira Ayuso <pablo@netfilter.org>
Sun, 7 Jan 2018 00:04:11 +0000 (01:04 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 8 Jan 2018 17:11:07 +0000 (18:11 +0100)
commitd33443e2ececba503b4bd174a80c4d0a328a3546
treedd5d483bb69fe147b5a52bee86dd7c3f09e653a5
parent3b876e20187adad3dfbe51aafac47df57fc70f4a
netfilter: add generic flow table infrastructure

This patch defines the API to interact with flow tables, this allows to
add, delete and lookup for entries in the flow table. This also adds the
generic garbage code that removes entries that have expired, ie. no
traffic has been seen for a while.

Users of the flow table infrastructure can delete entries via
flow_offload_dead(), which sets the dying bit, this signals the garbage
collector to release an entry from user context.

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