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)
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>

No differences found