git: 7093abbebd0b - stable/13 - ktls: Init reset tag task for cloned sessions

John Baldwin jhb at FreeBSD.org
Mon Aug 30 23:13:17 UTC 2021


The branch stable/13 has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=7093abbebd0ba6011dc8a8fbfb93ac52fef0173d

commit 7093abbebd0ba6011dc8a8fbfb93ac52fef0173d
Author:     Andrew Gallatin <gallatin at FreeBSD.org>
AuthorDate: 2021-08-11 18:06:43 +0000
Commit:     John Baldwin <jhb at FreeBSD.org>
CommitDate: 2021-08-30 22:10:32 +0000

    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
    
    (cherry picked from commit 95c51fafa40d56d0a32aff857261097acc65ec92)
---
 sys/kern/uipc_ktls.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sys/kern/uipc_ktls.c b/sys/kern/uipc_ktls.c
index 21e2386ac2bf..43870ab8bf4d 100644
--- a/sys/kern/uipc_ktls.c
+++ b/sys/kern/uipc_ktls.c
@@ -643,6 +643,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;


More information about the dev-commits-src-all mailing list