The branch main has been updated by gallatin:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=95c51fafa40d56d0a32aff857261097acc65ec92

commit 95c51fafa40d56d0a32aff857261097acc65ec92
Author:     Andrew Gallatin <galla...@freebsd.org>
AuthorDate: 2021-08-11 18:06:43 +0000
Commit:     Andrew Gallatin <galla...@freebsd.org>
CommitDate: 2021-08-11 18:06:43 +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
---
 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 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;
_______________________________________________
dev-commits-src-main@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/dev-commits-src-main
To unsubscribe, send any mail to "dev-commits-src-main-unsubscr...@freebsd.org"

Reply via email to