net engine: implement option "nodelay" for TCP sockets
authorSteven Noonan <snoonan@amazon.com>
Wed, 28 Nov 2012 22:52:36 +0000 (14:52 -0800)
committerJens Axboe <axboe@kernel.dk>
Wed, 30 Jan 2013 20:39:11 +0000 (21:39 +0100)
commit70a7878c00e130affc3e0bd7d59bd83d57c3268e
treeece6945579344e0ad486c8ab620ed323fcb618c2
parent680b5abcb197f52382c8c568c6f1453b410e2b66
net engine: implement option "nodelay" for TCP sockets

With disks, O_DIRECT effectively bypasses all buffering/caching mechanisms and
ensures that the I/O is going directly to the disk. Since TCP is a streaming
protocol (like disk I/O), it also has a buffering mechanism. As with disks, it
is sometimes desirable to bypass buffering. To that end, we can use
TCP_NODELAY, which transmits the packet as soon as data is assembled,
regardless of whether it occupies a full frame.

Signed-off-by: Steven Noonan <snoonan@amazon.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
engines/net.c