Skip to contentSkip to conversation

sched: act_ct: switch to per-action label counting

PATCH Applied Florian Westphal 2 participants 2 messages Oct 24, 2023 – Oct 25, 2023

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 sched: act_ct: switch to per-action label counting

net->ct.labels_used was meant to convey 'number of ip/nftables rules that need the label extension allocated'.

act_ct enables this for each net namespace, which voids all attempts to avoid ct->ext allocation when possible.

Move this increment to the control plane to request label extension space allocation only when its needed.

---
v2: want reverse xmas

 include/net/tc_act/tc_ct.h |  1 +
 net/sched/act_ct.c         | 41 +++++++++++++++++---------------------
 2 files changed, 19 insertions(+), 23 deletions(-)
include/net/tc_act/tc_ct.h +1 -0
index b24ea2d9400b..8a6dbfb23336 100644
@@ -22,6 +22,7 @@ struct tcf_ct_params {
 
 	struct nf_nat_range2 range;
 	bool ipv4_range;
+	bool put_labels;
 
 	u16 ct_action;
 
net/sched/act_ct.c +18 -23

99 lines not on this page · raw message

Signature · 1 line
2.41.0
#1 lore raw
This patch was applied to netdev/net-next.git (main) by David S. Miller <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (main) by David S. Miller <[email protected]>:

Quoted 10 lines · On Tue, 24 Oct 2023 13:05:51 +0200 you wrote:

net->ct.labels_used was meant to convey 'number of ip/nftables rules that need the label extension allocated'.

act_ct enables this for each net namespace, which voids all attempts to avoid ct->ext allocation when possible.

Move this increment to the control plane to request label extension space allocation only when its needed.

[...]

Here is the summary with links:
- [net-next,v2] sched: act_ct: switch to per-action label counting

    https://git.kernel.org/netdev/net-next/c/70f06c115bcc

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html