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

Function rte_cryptodev_get_sec_ctx

dpdk/lib/cryptodev/rte_cryptodev.c:944–957  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

942}
943
944void *
945rte_cryptodev_get_sec_ctx(uint8_t dev_id)
946{
947 void *sec_ctx = NULL;
948
949 if (dev_id < RTE_CRYPTO_MAX_DEVS &&
950 (rte_crypto_devices[dev_id].feature_flags &
951 RTE_CRYPTODEV_FF_SECURITY))
952 sec_ctx = rte_crypto_devices[dev_id].security_ctx;
953
954 rte_cryptodev_trace_get_sec_ctx(dev_id, sec_ctx);
955
956 return sec_ctx;
957}
958
959int
960rte_cryptodev_socket_id(uint8_t dev_id)

Callers 15

create_ipsec_sessionFunction · 0.85
cperf_create_sessionFunction · 0.85
ifFunction · 0.85
ifFunction · 0.85
ifFunction · 0.85
testsuite_setupFunction · 0.85
ut_teardownFunction · 0.85

Calls

no outgoing calls

Tested by 15

ifFunction · 0.68
ifFunction · 0.68
ifFunction · 0.68
testsuite_setupFunction · 0.68
ut_teardownFunction · 0.68
ut_teardown_rx_injectFunction · 0.68
security_proto_supportedFunction · 0.68
test_pdcp_protoFunction · 0.68
test_pdcp_proto_SGLFunction · 0.68
test_ipsec_proto_processFunction · 0.68