Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/cxgbe/crypto/t4_kern_tls.c
Show First 20 Lines • Show All 2,331 Lines • ▼ Show 20 Lines | if (tlsp->l2te) | ||||
t4_l2t_release(tlsp->l2te); | t4_l2t_release(tlsp->l2te); | ||||
if (tlsp->tid >= 0) | if (tlsp->tid >= 0) | ||||
release_tid(sc, tlsp->tid, tlsp->ctrlq); | release_tid(sc, tlsp->tid, tlsp->ctrlq); | ||||
if (tlsp->ce) | if (tlsp->ce) | ||||
t4_release_lip(sc, tlsp->ce); | t4_release_lip(sc, tlsp->ce); | ||||
if (tlsp->tx_key_addr >= 0) | if (tlsp->tx_key_addr >= 0) | ||||
free_keyid(tlsp, tlsp->tx_key_addr); | free_keyid(tlsp, tlsp->tx_key_addr); | ||||
explicit_bzero(&tlsp->keyctx, sizeof(&tlsp->keyctx)); | zfree(tlsp, M_CXGBE); | ||||
free(tlsp, M_CXGBE); | |||||
} | } | ||||
void | void | ||||
t6_ktls_modload(void) | t6_ktls_modload(void) | ||||
{ | { | ||||
t4_register_shared_cpl_handler(CPL_ACT_OPEN_RPL, ktls_act_open_rpl, | t4_register_shared_cpl_handler(CPL_ACT_OPEN_RPL, ktls_act_open_rpl, | ||||
CPL_COOKIE_KERN_TLS); | CPL_COOKIE_KERN_TLS); | ||||
▲ Show 20 Lines • Show All 49 Lines • Show Last 20 Lines |