MCPcopy Create free account
hub / github.com/F-Stack/f-stack / ccp_compute_slot_count

Function ccp_compute_slot_count

dpdk/drivers/crypto/ccp/ccp_crypto.c:1364–1390  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1362}
1363
1364int
1365ccp_compute_slot_count(struct ccp_session *session)
1366{
1367 int count = 0;
1368
1369 switch (session->cmd_id) {
1370 case CCP_CMD_CIPHER:
1371 count = ccp_cipher_slot(session);
1372 break;
1373 case CCP_CMD_AUTH:
1374 count = ccp_auth_slot(session);
1375 break;
1376 case CCP_CMD_CIPHER_HASH:
1377 case CCP_CMD_HASH_CIPHER:
1378 count = ccp_cipher_slot(session);
1379 count += ccp_auth_slot(session);
1380 break;
1381 case CCP_CMD_COMBINED:
1382 count = ccp_aead_slot(session);
1383 break;
1384 default:
1385 CCP_LOG_ERR("Unsupported cmd_id");
1386
1387 }
1388
1389 return count;
1390}
1391
1392static uint8_t
1393algo_select(int sessalgo,

Callers 1

ccp_pmd_enqueue_burstFunction · 0.85

Calls 3

ccp_cipher_slotFunction · 0.85
ccp_auth_slotFunction · 0.85
ccp_aead_slotFunction · 0.85

Tested by

no test coverage detected