]> git.baikalelectronics.ru Git - kernel.git/commit
rxrpc: Correctly initialise, limit and transmit call->rx_winsize
authorDavid Howells <dhowells@redhat.com>
Tue, 13 Sep 2016 21:36:22 +0000 (22:36 +0100)
committerDavid Howells <dhowells@redhat.com>
Tue, 13 Sep 2016 21:38:45 +0000 (22:38 +0100)
commitf5b2ca5fd40114dfede9a6623c03f672dbc8463f
tree33e6f4d4378ac573346d0b405cc335db93c6830f
parent2dc9c56a71f3986ec7edeea832fb0c0833b3e1d7
rxrpc: Correctly initialise, limit and transmit call->rx_winsize

call->rx_winsize should be initialised to the sysctl setting and the sysctl
setting should be limited to the maximum we want to permit.  Further, we
need to place this in the ACK info instead of the sysctl setting.

Furthermore, discard the idea of accepting the subpackets of a jumbo packet
that lie beyond the receive window when the first packet of the jumbo is
within the window.  Just discard the excess subpackets instead.  This
allows the receive window to be opened up right to the buffer size less one
for the dead slot.

Signed-off-by: David Howells <dhowells@redhat.com>
net/rxrpc/ar-internal.h
net/rxrpc/call_object.c
net/rxrpc/input.c
net/rxrpc/misc.c
net/rxrpc/output.c
net/rxrpc/sysctl.c