<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/net/tipc/sysctl.c, branch v3.12.10</title>
<subtitle>Linux kernel source tree</subtitle>
<id>https://git.amat.us/linux/atom/net/tipc/sysctl.c?h=v3.12.10</id>
<link rel='self' href='https://git.amat.us/linux/atom/net/tipc/sysctl.c?h=v3.12.10'/>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/'/>
<updated>2013-06-17T22:53:00Z</updated>
<entry>
<title>tipc: change socket buffer overflow control to respect sk_rcvbuf</title>
<updated>2013-06-17T22:53:00Z</updated>
<author>
<name>Ying Xue</name>
<email>ying.xue@windriver.com</email>
</author>
<published>2013-06-17T14:54:37Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=cc79dd1ba9c1021c2ac6ae200a65ec38ee8db351'/>
<id>urn:sha1:cc79dd1ba9c1021c2ac6ae200a65ec38ee8db351</id>
<content type='text'>
As per feedback from the netdev community, we change the buffer
overflow protection algorithm in receiving sockets so that it
always respects the nominal upper limit set in sk_rcvbuf.

Instead of scaling up from a small sk_rcvbuf value, which leads to
violation of the configured sk_rcvbuf limit, we now calculate the
weighted per-message limit by scaling down from a much bigger value,
still in the same field, according to the importance priority of the
received message.

To allow for administrative tunability of the socket receive buffer
size, we create a tipc_rmem sysctl variable to allow the user to
configure an even bigger value via sysctl command.  It is a size of
three (min/default/max) to be consistent with things like tcp_rmem.

By default, the value initialized in tipc_rmem[1] is equal to the
receive socket size needed by a TIPC_CRITICAL_IMPORTANCE message.
This value is also set as the default value of sk_rcvbuf.

Originally-by: Jon Maloy &lt;jon.maloy@ericsson.com&gt;
Cc: Neil Horman &lt;nhorman@tuxdriver.com&gt;
Cc: Jon Maloy &lt;jon.maloy@ericsson.com&gt;
[Ying: added sysctl variation to Jon's original patch]
Signed-off-by: Ying Xue &lt;ying.xue@windriver.com&gt;
[PG: don't compile sysctl.c if not config'd; add Documentation]
Signed-off-by: Paul Gortmaker &lt;paul.gortmaker@windriver.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
</feed>
