Licensing Information
Open Source Used In Cisco Nexus 9000 Series 7.0(3)I5(1)
3225
if (sid > ixp_sesnum || ixp_sessions == NULL ||
ixp_sessions[sid] == NULL) {
dprintk("%s,%d: EINVAL\n", __FILE__, __LINE__);
return EINVAL;
}
/* Silently accept and return */
if (sid == 0)
return 0;
if (ixp_sessions[sid]) {
if (ixp_sessions[sid]->ixp_ctx_id != -1) {
ixCryptoAccCtxUnregister(ixp_sessions[sid]->ixp_ctx_id);
ixp_sessions[sid]->ixp_ctx_id = -1;
}
kfree(ixp_sessions[sid]);
}
ixp_sessions[sid] = NULL;
if (ixp_blocked) {
ixp_blocked = 0;
crypto_unblock(ixp_id, CRYPTO_SYMQ);
}
return 0;
}
/*
* callback for when hash processing is complete
*/
static void
ixp_hash_perform_cb(
UINT32 hash_key_id,
IX_MBUF *bufp,
IxCryptoAccStatus status)
{
struct ixp_q *q;
dprintk("%s(%u, %p, 0x%x)\n", __FUNCTION__, hash_key_id, bufp, status);
if (bufp == NULL) {
printk("ixp: NULL buf in %s\n", __FUNCTION__);
return;
}
q = IX_MBUF_PRIV(bufp);
if (q == NULL) {
printk("ixp: NULL priv in %s\n", __FUNCTION__);










