| 1216 | } |
| 1217 | |
| 1218 | int |
| 1219 | pdcp_process_func_set(struct rte_pdcp_entity *entity, const struct rte_pdcp_entity_conf *conf) |
| 1220 | { |
| 1221 | struct entity_priv *en_priv; |
| 1222 | int ret; |
| 1223 | |
| 1224 | if (entity == NULL || conf == NULL) |
| 1225 | return -EINVAL; |
| 1226 | |
| 1227 | en_priv = entity_priv_get(entity); |
| 1228 | |
| 1229 | ret = pdcp_iv_gen_func_set(entity, conf); |
| 1230 | if (ret) |
| 1231 | return ret; |
| 1232 | |
| 1233 | ret = pdcp_entity_priv_populate(en_priv, conf); |
| 1234 | if (ret) |
| 1235 | return ret; |
| 1236 | |
| 1237 | ret = pdcp_pre_post_func_set(entity, conf); |
| 1238 | if (ret) |
| 1239 | return ret; |
| 1240 | |
| 1241 | return 0; |
| 1242 | } |
no test coverage detected