The return codes for the onload_delegated_send_prepare() function are defined in enum
onload_delegated_send_rc
, and are as follows
-
enum onload_delegated_send_rc { ONLOAD_DELEGATED_SEND_RC_OK = 0
- Send successful.
-
ONLOAD_DELEGATED_SEND_RC_BAD_SOCKET
- Non-onloaded, non-TCP, non-connected or write-shutdowned.
-
ONLOAD_DELEGATED_SEND_RC_SMALL_HEADER
- Too small header_len value.
-
ONLOAD_DELEGATED_SEND_RC_SENDQ_BUSY
- Send queue is not empty.
-
ONLOAD_DELEGATED_SEND_RC_NOWIN
- Send window is closed, the peer cannot receive more data.
-
ONLOAD_DELEGATED_SEND_RC_NOARP
- Failed to find the destination MAC address. See extensions.h for further information.
-
ONLOAD_DELEGATED_SEND_RC_NOCWIN
- Congestion window is closed. It is a violation of the TCP protocol to send anything. However, all the headers are filled in and the caller can use them for sending.