| 191 | } |
| 192 | |
| 193 | static int |
| 194 | pdcp_crypto_xfrm_get(const struct rte_pdcp_entity_conf *conf, struct rte_crypto_sym_xform **c_xfrm, |
| 195 | struct rte_crypto_sym_xform **a_xfrm) |
| 196 | { |
| 197 | *c_xfrm = NULL; |
| 198 | *a_xfrm = NULL; |
| 199 | |
| 200 | if (conf->crypto_xfrm == NULL) |
| 201 | return -EINVAL; |
| 202 | |
| 203 | if (conf->crypto_xfrm->type == RTE_CRYPTO_SYM_XFORM_CIPHER) { |
| 204 | *c_xfrm = conf->crypto_xfrm; |
| 205 | *a_xfrm = conf->crypto_xfrm->next; |
| 206 | } else if (conf->crypto_xfrm->type == RTE_CRYPTO_SYM_XFORM_AUTH) { |
| 207 | *a_xfrm = conf->crypto_xfrm; |
| 208 | *c_xfrm = conf->crypto_xfrm->next; |
| 209 | } else { |
| 210 | return -EINVAL; |
| 211 | } |
| 212 | |
| 213 | return 0; |
| 214 | } |
| 215 | |
| 216 | static int |
| 217 | pdcp_iv_gen_func_set(struct rte_pdcp_entity *entity, const struct rte_pdcp_entity_conf *conf) |
no outgoing calls
no test coverage detected