FreeBSD/sys/ofed/drivers/infiniband/ulp/sdp/sdp_main.c
/*
 * Notify a sdp socket of an asynchronous error.
 *
 * Do not wake up user since there currently is no mechanism for
 * reporting soft errors (yet - a kqueue filter may be added).
 */
Notify a sdp socket of an asynchronous error.
Do not wake up user since there currently is no mechanism for
reporting soft errors (yet - a kqueue filter may be added).
Notify a sdp socket of an asynchronous error . Do not wake up user since there currently is no mechanism for reporting soft errors ( yet - a kqueue filter may be added ) .
struct sdp_sock *
sdp_notify(struct sdp_sock *ssk, int error)
{
	SDP_WLOCK_ASSERT(ssk);
	if ((ssk->flags & SDP_TIMEWAIT) ||
	    (ssk->flags & SDP_DROPPED))
		return (ssk);
	if (ssk->state == TCPS_ESTABLISHED &&
	    (error == EHOSTUNREACH || error == ENETUNREACH ||
	     error == EHOSTDOWN))
		return (ssk);
	ssk->softerror = error;
	return sdp_drop(ssk, error);
}
struct sdp_sock * sdp_notify ( struct sdp_sock * ssk , int error ) { SDP_WLOCK_ASSERT ( ssk ) ; if ( ( ssk -> flags & SDP_TIMEWAIT ) || ( ssk -> flags & SDP_DROPPED ) ) return ( ssk ) ; if ( ssk -> state == TCPS_ESTABLISHED && ( error == EHOSTUNREACH || error == ENETUNREACH || error == EHOSTDOWN ) ) return ( ssk ) ; ssk -> softerror = error ; return sdp_drop ( ssk , error ) ; }
Notify a sdp socket of an asynchronous error.
Notify a sdp socket of an asynchronous error .
/*
	 * Ignore some errors if we are hooked up.
	 */