Lines Matching refs:bundle
86 struct mp_reply_bundle *bundle = param; in __handle_secondary_request() local
87 const struct rte_mp_msg *msg = &bundle->msg; in __handle_secondary_request()
173 ret = send_response_to_secondary(&tmp_req, ret, bundle->peer); in __handle_secondary_request()
178 free(bundle->peer); in __handle_secondary_request()
179 free(bundle); in __handle_secondary_request()
185 struct mp_reply_bundle *bundle; in handle_secondary_request() local
190 bundle = malloc(sizeof(*bundle)); in handle_secondary_request()
191 if (bundle == NULL) { in handle_secondary_request()
196 bundle->msg = *msg; in handle_secondary_request()
202 bundle->peer = strdup(peer); in handle_secondary_request()
203 if (bundle->peer == NULL) { in handle_secondary_request()
204 free(bundle); in handle_secondary_request()
213 ret = rte_eal_alarm_set(1, __handle_secondary_request, bundle); in handle_secondary_request()
216 free(bundle->peer); in handle_secondary_request()
217 free(bundle); in handle_secondary_request()
225 struct mp_reply_bundle *bundle = param; in __handle_primary_request() local
226 struct rte_mp_msg *msg = &bundle->msg; in __handle_primary_request()
296 if (rte_mp_reply(&mp_resp, bundle->peer) < 0) in __handle_primary_request()
299 free(bundle->peer); in __handle_primary_request()
300 free(bundle); in __handle_primary_request()
311 struct mp_reply_bundle *bundle; in handle_primary_request() local
319 bundle = calloc(1, sizeof(*bundle)); in handle_primary_request()
320 if (bundle == NULL) { in handle_primary_request()
329 bundle->msg = *msg; in handle_primary_request()
335 bundle->peer = (void *)strdup(peer); in handle_primary_request()
336 if (bundle->peer == NULL) { in handle_primary_request()
338 free(bundle); in handle_primary_request()
350 ret = rte_eal_alarm_set(1, __handle_primary_request, bundle); in handle_primary_request()
352 free(bundle->peer); in handle_primary_request()
353 free(bundle); in handle_primary_request()