![]() |
|
|||
0001 // SPDX-License-Identifier: GPL-2.0-or-later 0002 /* Miscellaneous bits 0003 * 0004 * Copyright (C) 2016 Red Hat, Inc. All Rights Reserved. 0005 * Written by David Howells (dhowells@redhat.com) 0006 */ 0007 0008 #include <linux/kernel.h> 0009 #include <net/sock.h> 0010 #include <net/af_rxrpc.h> 0011 #include "ar-internal.h" 0012 0013 /* 0014 * The maximum listening backlog queue size that may be set on a socket by 0015 * listen(). 0016 */ 0017 unsigned int rxrpc_max_backlog __read_mostly = 10; 0018 0019 /* 0020 * How long to wait before scheduling ACK generation after seeing a 0021 * packet with RXRPC_REQUEST_ACK set (in jiffies). 0022 */ 0023 unsigned long rxrpc_requested_ack_delay = 1; 0024 0025 /* 0026 * How long to wait before scheduling an ACK with subtype DELAY (in jiffies). 0027 * 0028 * We use this when we've received new data packets. If those packets aren't 0029 * all consumed within this time we will send a DELAY ACK if an ACK was not 0030 * requested to let the sender know it doesn't need to resend. 0031 */ 0032 unsigned long rxrpc_soft_ack_delay = HZ; 0033 0034 /* 0035 * How long to wait before scheduling an ACK with subtype IDLE (in jiffies). 0036 * 0037 * We use this when we've consumed some previously soft-ACK'd packets when 0038 * further packets aren't immediately received to decide when to send an IDLE 0039 * ACK let the other end know that it can free up its Tx buffer space. 0040 */ 0041 unsigned long rxrpc_idle_ack_delay = HZ / 2; 0042 0043 /* 0044 * Receive window size in packets. This indicates the maximum number of 0045 * unconsumed received packets we're willing to retain in memory. Once this 0046 * limit is hit, we should generate an EXCEEDS_WINDOW ACK and discard further 0047 * packets. 0048 */ 0049 unsigned int rxrpc_rx_window_size = RXRPC_INIT_RX_WINDOW_SIZE; 0050 #if (RXRPC_RXTX_BUFF_SIZE - 1) < RXRPC_INIT_RX_WINDOW_SIZE 0051 #error Need to reduce RXRPC_INIT_RX_WINDOW_SIZE 0052 #endif 0053 0054 /* 0055 * Maximum Rx MTU size. This indicates to the sender the size of jumbo packet 0056 * made by gluing normal packets together that we're willing to handle. 0057 */ 0058 unsigned int rxrpc_rx_mtu = 5692; 0059 0060 /* 0061 * The maximum number of fragments in a received jumbo packet that we tell the 0062 * sender that we're willing to handle. 0063 */ 0064 unsigned int rxrpc_rx_jumbo_max = 4; 0065 0066 const s8 rxrpc_ack_priority[] = { 0067 [0] = 0, 0068 [RXRPC_ACK_DELAY] = 1, 0069 [RXRPC_ACK_REQUESTED] = 2, 0070 [RXRPC_ACK_IDLE] = 3, 0071 [RXRPC_ACK_DUPLICATE] = 4, 0072 [RXRPC_ACK_OUT_OF_SEQUENCE] = 5, 0073 [RXRPC_ACK_EXCEEDS_WINDOW] = 6, 0074 [RXRPC_ACK_NOSPACE] = 7, 0075 [RXRPC_ACK_PING_RESPONSE] = 8, 0076 };
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |