summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorQingfang Deng <qingfang.deng@linux.dev>2026-09-09 16:17:04 +0800
committerPablo Neira Ayuso <pablo@netfilter.org>2026-09-27 23:39:21 +0200
commitc48fdf027a7265b86ea6332c4e1f56d86268541b (patch)
tree813784ea950db630e465a554b2d4b7dd4c6c978c /include
parentd4548625f38b7958540451f9afed9e4155b4fa22 (diff)
downloadlinux-next-c48fdf027a7265b86ea6332c4e1f56d86268541b.tar.gz
linux-next-c48fdf027a7265b86ea6332c4e1f56d86268541b.zip
netfilter: flowtable: check namespace before iterating flows
nf_flow_table_cleanup() walks every registered flow table, checking the network namespace for each flow in nf_flow_table_do_cleanup(). As a result, tables in other namespaces are still iterated and their cleanup work is flushed. Compare the flow table's namespace with the device's namespace in nf_flow_table_cleanup() and skip nonmatching tables. This avoids unnecessary iteration and work flushing, and leaves the per-flow cleanup callback to check only the interface index. Signed-off-by: Qingfang Deng <qingfang.deng@linux.dev> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions