• Tom Herbert's avatar
    net: Add MSG_BATCH flag · f092276d
    Tom Herbert authored
    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: default avatarTom Herbert <tom@herbertland.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    f092276d
socket.c 79.8 KB