From 70f06c115bcca26ceeebf938e48bc8143668e38b Mon Sep 17 00:00:00 2001 From: Florian Westphal Date: Tue, 24 Oct 2023 13:05:51 +0200 Subject: 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. Signed-off-by: Florian Westphal Reviewed-by: Pedro Tammela Reviewed-by: Jamal Hadi Salim Signed-off-by: David S. Miller --- include/net/tc_act/tc_ct.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/net/tc_act') diff --git a/include/net/tc_act/tc_ct.h b/include/net/tc_act/tc_ct.h index b24ea2d9400b..8a6dbfb23336 100644 --- a/include/net/tc_act/tc_ct.h +++ b/include/net/tc_act/tc_ct.h @@ -22,6 +22,7 @@ struct tcf_ct_params { struct nf_nat_range2 range; bool ipv4_range; + bool put_labels; u16 ct_action; -- cgit v1.2.3