]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nf_flow_table: do not remove offload when other netns's interface is down
authorTaehee Yoo <ap420073@gmail.com>
Thu, 11 Oct 2018 18:46:29 +0000 (03:46 +0900)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 19 Oct 2018 11:30:48 +0000 (13:30 +0200)
commit78c4e24ac2e6acaf6a04aff6c52b3a48148238a9
tree198e19acf8c76aa381b10cd65039ef0ee6a28af5
parent3af989fc5020610ad414246eb9daf12b757dc6b0
netfilter: nf_flow_table: do not remove offload when other netns's interface is down

When interface is down, offload cleanup function(nf_flow_table_do_cleanup)
is called and that checks whether interface index of offload and
index of link down interface is same. but only interface index checking
is not enough because flowtable is not pernet list.
So that, if other netns's interface that has index is same with offload
is down, that offload will be removed.
This patch adds netns checking code to the offload cleanup routine.

Fixes: c6fcb692ca1a ("netfilter: nf_flow_table: add a new flow state for tearing down offloading")
Signed-off-by: Taehee Yoo <ap420073@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_flow_table_core.c