diff options
author | David Howells <dhowells@redhat.com> | 2016-09-13 23:36:22 +0200 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2016-09-13 23:38:45 +0200 |
commit | 75e42126399220069ada0ca0e93237993c6afccf (patch) | |
tree | 33e6f4d4378ac573346d0b405cc335db93c6830f /net/rxrpc/call_object.c | |
parent | rxrpc: Fix prealloc refcounting (diff) | |
download | linux-75e42126399220069ada0ca0e93237993c6afccf.tar.xz linux-75e42126399220069ada0ca0e93237993c6afccf.zip |
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>
Diffstat (limited to 'net/rxrpc/call_object.c')
-rw-r--r-- | net/rxrpc/call_object.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/rxrpc/call_object.c b/net/rxrpc/call_object.c index 9aa1c4b53563..22f9b0d1a138 100644 --- a/net/rxrpc/call_object.c +++ b/net/rxrpc/call_object.c @@ -152,7 +152,7 @@ struct rxrpc_call *rxrpc_alloc_call(gfp_t gfp) memset(&call->sock_node, 0xed, sizeof(call->sock_node)); /* Leave space in the ring to handle a maxed-out jumbo packet */ - call->rx_winsize = RXRPC_RXTX_BUFF_SIZE - 1 - 46; + call->rx_winsize = rxrpc_rx_window_size; call->tx_winsize = 16; call->rx_expect_next = 1; return call; |