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
This commit is contained in:
Andrew Gallatin 2021-08-11 14:06:43 -04:00
parent 4ccaa87f69
commit 95c51fafa4

View File

@ -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;