Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/uipc_ktls.c
Show First 20 Lines • Show All 2,168 Lines • ▼ Show 20 Lines | for (;;) { | ||||
STAILQ_CONCAT(&local_m_head, &wq->m_head); | STAILQ_CONCAT(&local_m_head, &wq->m_head); | ||||
STAILQ_INIT(&local_so_head); | STAILQ_INIT(&local_so_head); | ||||
STAILQ_CONCAT(&local_so_head, &wq->so_head); | STAILQ_CONCAT(&local_so_head, &wq->so_head); | ||||
mtx_unlock(&wq->mtx); | mtx_unlock(&wq->mtx); | ||||
STAILQ_FOREACH_SAFE(m, &local_m_head, m_epg_stailq, n) { | STAILQ_FOREACH_SAFE(m, &local_m_head, m_epg_stailq, n) { | ||||
if (m->m_epg_flags & EPG_FLAG_2FREE) { | if (m->m_epg_flags & EPG_FLAG_2FREE) { | ||||
ktls_free(m->m_epg_tls); | ktls_free(m->m_epg_tls); | ||||
uma_zfree(zone_mbuf, m); | m_free_raw(m); | ||||
} else { | } else { | ||||
ktls_encrypt(wq, m); | ktls_encrypt(wq, m); | ||||
counter_u64_add(ktls_cnt_tx_queued, -1); | counter_u64_add(ktls_cnt_tx_queued, -1); | ||||
} | } | ||||
} | } | ||||
STAILQ_FOREACH_SAFE(so, &local_so_head, so_ktls_rx_list, son) { | STAILQ_FOREACH_SAFE(so, &local_so_head, so_ktls_rx_list, son) { | ||||
ktls_decrypt(so); | ktls_decrypt(so); | ||||
counter_u64_add(ktls_cnt_rx_queued, -1); | counter_u64_add(ktls_cnt_rx_queued, -1); | ||||
} | } | ||||
} | } | ||||
} | } |