opal/mca/common/libfabric/libfabric/prov/usnic/src/usdf_av.c
/*
 * A request failed, post an error event to the EQ
 */
A request failed, post an error event to the EQ
A request failed post an error event to the EQ
static void
usdf_post_insert_request_error(struct usdf_av_insert *insert,
		struct usdf_av_req *req)
{
	struct fi_eq_err_entry err_entry;
	struct usdf_av *av;
	av = insert->avi_av;
	*req->avr_fi_addr = FI_ADDR_NOTAVAIL;
	free(req->avr_dest);
	err_entry.fid = &av->av_fid.fid;
	err_entry.context = insert->avi_context;
	err_entry.data = req - (struct usdf_av_req *)(insert + 1);
	err_entry.err = -req->avr_status;
	usdf_eq_write_internal(av->av_eq, FI_COMPLETE,
		&err_entry, sizeof(err_entry),
		USDF_EVENT_FLAG_ERROR);
}
static void usdf_post_insert_request_error ( struct usdf_av_insert * insert , struct usdf_av_req * req ) { struct fi_eq_err_entry err_entry ; struct usdf_av * av ; av = insert -> avi_av ; * req -> avr_fi_addr = FI_ADDR_NOTAVAIL ; free ( req -> avr_dest ) ; err_entry . fid = & av -> av_fid . fid ; err_entry . context = insert -> avi_context ; err_entry . data = req - ( struct usdf_av_req * ) ( insert + 1 ) ; err_entry . err = - req -> avr_status ; usdf_eq_write_internal ( av -> av_eq , FI_COMPLETE , & err_entry , sizeof ( err_entry ) , USDF_EVENT_FLAG_ERROR ) ; }
A request failed, post an error event to the EQ
A request failed post an error event to the EQ