* [PATCH net-next] net/sched: act_ct: Offload only ASSURED connections
@ 2021-12-01 13:31 Chris Mi
2021-12-03 11:20 ` patchwork-bot+netdevbpf
0 siblings, 1 reply; 2+ messages in thread
From: Chris Mi @ 2021-12-01 13:31 UTC (permalink / raw)
To: netdev; +Cc: davem, kuba, ozsh, roid, paulb, Chris Mi
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.
Signed-off-by: Chris Mi <cmi@nvidia.com>
Reviewed-by: Oz Shlomo <ozsh@nvidia.com>
Reviewed-by: Roi Dayan <roid@nvidia.com>
---
net/sched/act_ct.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/net/sched/act_ct.c b/net/sched/act_ct.c
index 90866ae45573..ab1810f2e660 100644
--- a/net/sched/act_ct.c
+++ b/net/sched/act_ct.c
@@ -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)) {
--
2.21.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net-next] net/sched: act_ct: Offload only ASSURED connections
2021-12-01 13:31 [PATCH net-next] net/sched: act_ct: Offload only ASSURED connections Chris Mi
@ 2021-12-03 11:20 ` patchwork-bot+netdevbpf
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2021-12-03 11:20 UTC (permalink / raw)
To: Chris Mi; +Cc: netdev, davem, kuba, ozsh, roid, paulb
Hello:
This patch was applied to netdev/net-next.git (master)
by David S. Miller <davem@davemloft.net>:
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!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-12-03 11:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-01 13:31 [PATCH net-next] net/sched: act_ct: Offload only ASSURED connections Chris Mi
2021-12-03 11:20 ` patchwork-bot+netdevbpf
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.