Commit 1ef7f50c authored by Changliang Wu's avatar Changliang Wu Committed by Pablo Neira Ayuso
Browse files

netfilter: ctnetlink: support CTA_FILTER for flush



From cb8aa9a3, we can use kernel side filtering for dump, but
this capability is not available for flush.

This Patch allows advanced filter with CTA_FILTER for flush

Performace
1048576 ct flows in total, delete 50,000 flows by origin src ip
3.06s -> dump all, compare and delete
584ms -> directly flush with filter

Signed-off-by: default avatarChangliang Wu <changliang.wu@smartx.com>
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
parent 55ddb6c5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment