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()
175 ret = send_response_to_secondary(&tmp_req, ret, bundle->peer); in __handle_secondary_request()
179 free(bundle->peer); in __handle_secondary_request()
180 free(bundle); in __handle_secondary_request()
186 struct mp_reply_bundle *bundle; in handle_secondary_request() local
191 bundle = malloc(sizeof(*bundle)); in handle_secondary_request()
192 if (bundle == NULL) { in handle_secondary_request()
197 bundle->msg = *msg; in handle_secondary_request()
203 bundle->peer = strdup(peer); in handle_secondary_request()
204 if (bundle->peer == NULL) { in handle_secondary_request()
205 free(bundle); in handle_secondary_request()
214 ret = rte_eal_alarm_set(1, __handle_secondary_request, bundle); in handle_secondary_request()
217 free(bundle->peer); in handle_secondary_request()
218 free(bundle); in handle_secondary_request()
226 struct mp_reply_bundle *bundle = param; in __handle_primary_request() local
227 struct rte_mp_msg *msg = &bundle->msg; in __handle_primary_request()
297 if (rte_mp_reply(&mp_resp, bundle->peer) < 0) in __handle_primary_request()
300 free(bundle->peer); in __handle_primary_request()
301 free(bundle); in __handle_primary_request()
312 struct mp_reply_bundle *bundle; in handle_primary_request() local
320 bundle = calloc(1, sizeof(*bundle)); in handle_primary_request()
321 if (bundle == NULL) { in handle_primary_request()
330 bundle->msg = *msg; in handle_primary_request()
336 bundle->peer = (void *)strdup(peer); in handle_primary_request()
337 if (bundle->peer == NULL) { in handle_primary_request()
339 free(bundle); in handle_primary_request()
351 ret = rte_eal_alarm_set(1, __handle_primary_request, bundle); in handle_primary_request()
353 free(bundle->peer); in handle_primary_request()
354 free(bundle); in handle_primary_request()