diff options
author | Florian Westphal <fw@strlen.de> | 2023-10-24 13:05:51 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-10-25 11:24:04 +0200 |
commit | 70f06c115bcca26ceeebf938e48bc8143668e38b (patch) | |
tree | 282f291e63daee13a620f48c1f0c8722004d2997 /include/net/tc_act | |
parent | net: hns3: add some link modes for hisilicon device (diff) | |
download | linux-70f06c115bcca26ceeebf938e48bc8143668e38b.tar.xz linux-70f06c115bcca26ceeebf938e48bc8143668e38b.zip |
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>
Diffstat (limited to 'include/net/tc_act')
-rw-r--r-- | include/net/tc_act/tc_ct.h | 1 |
1 files changed, 1 insertions, 0 deletions
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; |