From 46cfebe4ab0b0969d74a209b1edd58929db0c7ea Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Mon, 19 Dec 2022 12:50:54 +0100 Subject: [PATCH] child-sa: Pass HW offload mode for policies --- src/libcharon/sa/child_sa.c | 4 ++++ 1 file changed, 4 insertions(+) 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, -- 2.47.2