From: Tobias Brunner Date: Mon, 19 Dec 2022 11:50:54 +0000 (+0100) Subject: child-sa: Pass HW offload mode for policies X-Git-Tag: android-2.4.1~4^2~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=46cfebe4ab0b0969d74a209b1edd58929db0c7ea;p=thirdparty%2Fstrongswan.git child-sa: Pass HW offload mode for policies --- diff --git a/src/libcharon/sa/child_sa.c b/src/libcharon/sa/child_sa.c index a29531ccbc..8f101e1ff0 100644 --- a/src/libcharon/sa/child_sa.c +++ b/src/libcharon/sa/child_sa.c @@ -1094,6 +1094,7 @@ static status_t install_policies_inbound(private_child_sa_t *this, .type = type, .prio = priority, .manual_prio = manual_prio, + .hw_offload = this->config->get_hw_offload(this->config), .src = other_addr, .dst = my_addr, .sa = my_sa, @@ -1131,6 +1132,7 @@ static status_t install_policies_outbound(private_child_sa_t *this, .type = type, .prio = priority, .manual_prio = manual_prio, + .hw_offload = this->config->get_hw_offload(this->config), .src = my_addr, .dst = other_addr, .sa = other_sa, @@ -1206,6 +1208,7 @@ static void del_policies_inbound(private_child_sa_t *this, .type = type, .prio = priority, .manual_prio = manual_prio, + .hw_offload = this->config->get_hw_offload(this->config), .src = other_addr, .dst = my_addr, .sa = my_sa, @@ -1242,6 +1245,7 @@ static void del_policies_outbound(private_child_sa_t *this, .type = type, .prio = priority, .manual_prio = manual_prio, + .hw_offload = this->config->get_hw_offload(this->config), .src = my_addr, .dst = other_addr, .sa = other_sa,