Licensing Information

Open Source Used In Cisco Nexus 9000 Series 7.0(3)I5(1)
3231
return;
}
if (IX_CRYPTO_ACC_STATUS_SUCCESS != status) {
printk("ixp: register failed 0x%x\n", status);
while (!list_empty(&ixp->ixp_q)) {
q = list_entry(ixp->ixp_q.next, struct ixp_q, ixp_q_list);
list_del(&q->ixp_q_list);
q->ixp_q_crp->crp_etype = EINVAL;
crypto_done(q->ixp_q_crp);
kmem_cache_free(qcache, q);
}
return;
}
/*
 * we are now registered, we cannot start processing the Q here
 * or we get strange errors with AES (DES/3DES seem to be ok).
 */
ixp->ixp_registered = 1;
schedule_work(&ixp->ixp_pending_work);
}
/*
* callback for when data processing is complete
*/
static void
ixp_perform_cb(
UINT32 ctx_id,
IX_MBUF *sbufp,
IX_MBUF *dbufp,
IxCryptoAccStatus status)
{
struct ixp_q *q;
dprintk("%s(%d, %p, %p, 0x%x)\n", __FUNCTION__, ctx_id, sbufp,
dbufp, status);
if (sbufp == NULL) {
printk("ixp: NULL sbuf in ixp_perform_cb\n");
return;
}
q = IX_MBUF_PRIV(sbufp);
if (q == NULL) {
printk("ixp: NULL priv in ixp_perform_cb\n");