Date: Mon, 30 Aug 2021 23:13:17 GMT From: John Baldwin <jhb@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 7093abbebd0b - stable/13 - ktls: Init reset tag task for cloned sessions Message-ID: <202108302313.17UNDHHO076601@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=7093abbebd0ba6011dc8a8fbfb93ac52fef0173d commit 7093abbebd0ba6011dc8a8fbfb93ac52fef0173d Author: Andrew Gallatin <gallatin@FreeBSD.org> AuthorDate: 2021-08-11 18:06:43 +0000 Commit: John Baldwin <jhb@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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202108302313.17UNDHHO076601>