]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
child-rekey: Maintain per-CPU values during rekeying
authorTobias Brunner <tobias@strongswan.org>
Wed, 19 May 2021 10:00:39 +0000 (12:00 +0200)
committerTobias Brunner <tobias@strongswan.org>
Wed, 28 May 2025 14:35:26 +0000 (16:35 +0200)
src/libcharon/sa/ikev2/tasks/child_rekey.c

index fb4a724f4dc3a84d632874fbd3a9ff75ebb2f7ca..c1d692dce44596fd8ee1c7280f01208fbf63704e 100644 (file)
@@ -291,6 +291,9 @@ METHOD(task_t, build_i, status_t,
                                                this->child_sa->get_if_id(this->child_sa, FALSE));
                this->child_create->use_label(this->child_create,
                                                this->child_sa->get_label(this->child_sa));
+               this->child_create->use_per_cpu(this->child_create,
+                                               this->child_sa->use_per_cpu(this->child_sa),
+                                               this->child_sa->get_cpu(this->child_sa));
        }
 
        if (this->child_create->task.build(&this->child_create->task,
@@ -445,6 +448,9 @@ METHOD(task_t, build_r, status_t,
                                                this->child_sa->get_if_id(this->child_sa, FALSE));
                this->child_create->use_label(this->child_create,
                                                this->child_sa->get_label(this->child_sa));
+               this->child_create->use_per_cpu(this->child_create,
+                                               this->child_sa->use_per_cpu(this->child_sa),
+                                               this->child_sa->get_cpu(this->child_sa));
                config = this->child_sa->get_config(this->child_sa);
                this->child_create->set_config(this->child_create,
                                                                           config->get_ref(config));