]> git.itanic.dy.fi Git - linux-stable/commit
sched: act_ct: switch to per-action label counting
authorFlorian Westphal <fw@strlen.de>
Tue, 24 Oct 2023 11:05:51 +0000 (13:05 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 25 Oct 2023 09:24:04 +0000 (10:24 +0100)
commit70f06c115bcca26ceeebf938e48bc8143668e38b
tree282f291e63daee13a620f48c1f0c8722004d2997
parent8ee2843f4d52026ab67e7577eaa49d444e1976b8
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 <fw@strlen.de>
Reviewed-by: Pedro Tammela <pctammela@mojatatu.com>
Reviewed-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/tc_act/tc_ct.h
net/sched/act_ct.c