net/sched: act_ct: Offload only ASSURED connections
Subsystems (3)
PATCH 1/1 net/sched: act_ct: Offload only ASSURED connections
Short-lived connections increase the insertion rate requirements, fill the offload table and provide very limited offload value since they process a very small amount of packets. The ct ASSURED flag is designed to filter short-lived connections for early expiration.
Offload connections when they are ESTABLISHED and ASSURED.
--- net/sched/act_ct.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
net/sched/act_ct.c +2 -1
@@ -393,7 +393,8 @@ static void tcf_ct_flow_table_process_conn(struct tcf_ct_flow_table *ct_ft, {bool tcp = false; -if (ctinfo !=IP_CT_ESTABLISHED && ctinfo !=IP_CT_ESTABLISHED_REPLY ) +if ((ctinfo !=IP_CT_ESTABLISHED && ctinfo !=IP_CT_ESTABLISHED_REPLY ) || + !test_bit (IPS_ASSURED_BIT , &ct->status))return ;switch (nf_ct_protonum (ct)) {
Signature · 1 line
2.21.0
This patch was applied to netdev/net-next.git (master) by David S. Miller <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (master) by David S. Miller <[email protected]>:
Quoted 8 lines · On Wed, 1 Dec 2021 15:31:53 +0200 you wrote:
Short-lived connections increase the insertion rate requirements, fill the offload table and provide very limited offload value since they process a very small amount of packets. The ct ASSURED flag is designed to filter short-lived connections for early expiration.
Offload connections when they are ESTABLISHED and ASSURED.
[...]
Here is the summary with links:
- [net-next] net/sched: act_ct: Offload only ASSURED connections
https://git.kernel.org/netdev/net-next/c/43332cf97425
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html