diff options
author | David Howells <dhowells@redhat.com> | 2024-12-04 07:46:59 +0000 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-12-09 13:48:31 -0800 |
commit | fe24a5494390d22ff645fd201d2bf1669fa3aab1 (patch) | |
tree | 9a5e78765a3d5b024fc895fbe4a1604cd91ccd77 /net/rxrpc/input.c | |
parent | 0130eff911b13e0ad5fc2eebd44833cacd5a8b0b (diff) |
rxrpc: Send jumbo DATA packets
Send jumbo DATA packets if the path-MTU probing using padded PING ACK
packets shows up sufficient capacity to do so. This allows larger chunks
of data to be sent without reducing the retryability as the subpackets in a
jumbo packet can also be retransmitted individually.
Signed-off-by: David Howells <dhowells@redhat.com>
cc: Marc Dionne <marc.dionne@auristor.com>
cc: linux-afs@lists.infradead.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/rxrpc/input.c')
-rw-r--r-- | net/rxrpc/input.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/rxrpc/input.c b/net/rxrpc/input.c index 1eb9c22aba51..a7a249872a54 100644 --- a/net/rxrpc/input.c +++ b/net/rxrpc/input.c @@ -796,8 +796,11 @@ static void rxrpc_input_ack_trailer(struct rxrpc_call *call, struct sk_buff *skb peer->ackr_adv_pmtud = true; } else { peer->ackr_adv_pmtud = false; + capacity = clamp(capacity, 1, jumbo_max); } + call->tx_jumbo_max = capacity; + if (wake) wake_up(&call->waitq); } |