rxrpc: Improve jumbo packet counting
Improve the information stored about jumbo packets so that we don't need to reparse them so much later. Signed-off-by: David Howells <dhowells@redhat.com> Reviewed-by: Jeffrey Altman <jaltman@auristor.com>
This commit is contained in:
@@ -89,6 +89,15 @@ struct rxrpc_jumbo_header {
|
||||
#define RXRPC_JUMBO_DATALEN 1412 /* non-terminal jumbo packet data length */
|
||||
#define RXRPC_JUMBO_SUBPKTLEN (RXRPC_JUMBO_DATALEN + sizeof(struct rxrpc_jumbo_header))
|
||||
|
||||
/*
|
||||
* The maximum number of subpackets that can possibly fit in a UDP packet is:
|
||||
*
|
||||
* ((max_IP - IP_hdr - UDP_hdr) / RXRPC_JUMBO_SUBPKTLEN) + 1
|
||||
* = ((65535 - 28 - 28) / 1416) + 1
|
||||
* = 46 non-terminal packets and 1 terminal packet.
|
||||
*/
|
||||
#define RXRPC_MAX_NR_JUMBO 47
|
||||
|
||||
/*****************************************************************************/
|
||||
/*
|
||||
* on-the-wire Rx ACK packet data payload
|
||||
|
Reference in New Issue
Block a user