]> git.baikalelectronics.ru Git - kernel.git/commit
net: Add MSG_BATCH flag
authorTom Herbert <tom@herbertland.com>
Mon, 7 Mar 2016 22:11:03 +0000 (14:11 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Mar 2016 21:36:13 +0000 (16:36 -0500)
commitd7bc385a5b8822e6335393f2d1f3e88bc346b1be
treec1d130980b720167581a0f74a9a8bd2746e8cee2
parent07431f597b3f675d88ee832ec771d97d4fff6e55
net: Add MSG_BATCH flag

Add a new msg flag called MSG_BATCH. This flag is used in sendmsg to
indicate that more messages will follow (i.e. a batch of messages is
being sent). This is similar to MSG_MORE except that the following
messages are not merged into one packet, they are sent individually.
sendmmsg is updated so that each contained message except for the
last one is marked as MSG_BATCH.

MSG_BATCH is a performance optimization in cases where a socket
implementation can benefit by transmitting packets in a batch.

Signed-off-by: Tom Herbert <tom@herbertland.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/socket.h
net/socket.c