mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 15:27:29 +00:00
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>
This commit is contained in:
parent
3432a757b1
commit
75e4212639
6 changed files with 26 additions and 13 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue