Skip to content

Commit 182f505

Browse files
committed
rxrpc: Fix the basic transmit DATA packet content size at 1412 bytes
Fix the basic transmit DATA packet content size at 1412 bytes so that they can be arbitrarily assembled into jumbo packets. In the future, I'm thinking of moving to keeping a jumbo packet header at the beginning of each packet in the Tx queue and creating the packet header on the spot when kernel_sendmsg() is invoked. That way, jumbo packets can be assembled on the spur of the moment for (re-)transmission. Signed-off-by: David Howells <dhowells@redhat.com>
1 parent 2311e32 commit 182f505

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/rxrpc/sendmsg.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ static int rxrpc_send_data(struct rxrpc_sock *rx,
214214
goto maybe_error;
215215
}
216216

217-
max = call->conn->params.peer->maxdata;
217+
max = RXRPC_JUMBO_DATALEN;
218218
max -= call->conn->security_size;
219219
max &= ~(call->conn->size_align - 1UL);
220220

0 commit comments

Comments
 (0)