aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Gallatin <gallatin@FreeBSD.org>2021-08-11 18:06:43 +0000
committerAndrew Gallatin <gallatin@FreeBSD.org>2021-08-11 18:06:43 +0000
commit95c51fafa40d56d0a32aff857261097acc65ec92 (patch)
treea13652415bb97ee6ce625a265a7516652f4c271d
parent4ccaa87f695c8b9eb31f2ba9ce4913a045755fe0 (diff)
downloadsrc-95c51fafa40d56d0a32aff857261097acc65ec92.tar.gz
src-95c51fafa40d56d0a32aff857261097acc65ec92.zip
ktls: Init reset tag task for cloned sessions
When cloning a ktls session (which is needed when we need to switch output NICs for a NIC TLS session), we need to also init the reset task, like we do when creating a new tls session. Reviewed by: jhb Sponsored by: Netflix
-rw-r--r--sys/kern/uipc_ktls.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/kern/uipc_ktls.c b/sys/kern/uipc_ktls.c
index 1cc1f2e8b8c4..79da902095b3 100644
--- a/sys/kern/uipc_ktls.c
+++ b/sys/kern/uipc_ktls.c
@@ -709,6 +709,7 @@ ktls_clone_session(struct ktls_session *tls)
counter_u64_add(ktls_offload_active, 1);
refcount_init(&tls_new->refcount, 1);
+ TASK_INIT(&tls_new->reset_tag_task, 0, ktls_reset_send_tag, tls_new);
/* Copy fields from existing session. */
tls_new->params = tls->params;