| 942 | } |
| 943 | |
| 944 | void * |
| 945 | rte_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 | |
| 959 | int |
| 960 | rte_cryptodev_socket_id(uint8_t dev_id) |
no outgoing calls