summaryrefslogtreecommitdiffstats
path: root/sys/sys
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2017-02-10 19:49:42 +0000
committerjhb <jhb@FreeBSD.org>2017-02-10 19:49:42 +0000
commit46f6667a51486e043ff39383c22466479b46c129 (patch)
tree42dc8bd139d07e20b0fad6527ce3f90c3e8fd977 /sys/sys
parent5b0cd3cb0e35ceff6e3f2365dea16bf4a1aa41cb (diff)
downloadFreeBSD-src-46f6667a51486e043ff39383c22466479b46c129.zip
FreeBSD-src-46f6667a51486e043ff39383c22466479b46c129.tar.gz
MFC 311568,311584,312387:
Set MORETOCOME for AIO write requests on a socket. 311568: Set MORETOCOME for AIO write requests on a socket. Add a MSG_MOREOTOCOME message flag. When this flag is set, sosend* set PRUS_MOREOTOCOME when invoking the protocol send method. The aio worker tasks for sending on a socket set this flag when there are additional write jobs waiting on the socket buffer. 311584: Unbreak lib/libsysdecode after r311568 by decoding MSG_MORETOCOME flag in msgflags (Actually, this change excludes MSG_MORETOCOME from being decoded) 312387: Fix regression from r311568: collision of MSG_NOSIGNAL with MSG_MORETOCOME lead to delayed send of data sent with sendto(MSG_NOSIGNAL). Sponsored by: Chelsio Communications
Diffstat (limited to 'sys/sys')
-rw-r--r--sys/sys/socket.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/socket.h b/sys/sys/socket.h
index f23b5f6..d6459b1 100644
--- a/sys/sys/socket.h
+++ b/sys/sys/socket.h
@@ -435,6 +435,7 @@ struct msghdr {
#endif
#ifdef _KERNEL
#define MSG_SOCALLBCK 0x10000 /* for use by socket callbacks - soreceive (TCP) */
+#define MSG_MORETOCOME 0x100000 /* additional data pending */
#endif
/*
OpenPOWER on IntegriCloud