diff options
author | David Howells <dhowells@redhat.com> | 2022-10-17 08:54:57 +0100 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2023-01-31 16:38:09 +0000 |
commit | af094824f20b454ee23b7b5a860b3ba58f4e6938 (patch) | |
tree | 10093f83719001b3305ae729270f69470158ad45 /net/rxrpc/misc.c | |
parent | 223f59016fa2b6d01814dc53ace1c146857ba236 (diff) | |
download | linux-af094824f20b454ee23b7b5a860b3ba58f4e6938.tar.gz linux-af094824f20b454ee23b7b5a860b3ba58f4e6938.tar.bz2 linux-af094824f20b454ee23b7b5a860b3ba58f4e6938.zip |
rxrpc: Allow a delay to be injected into packet reception
If CONFIG_AF_RXRPC_DEBUG_RX_DELAY=y, then a delay is injected between
packets and errors being received and them being made available to the
processing code, thereby allowing the RTT to be artificially increased.
Signed-off-by: David Howells <dhowells@redhat.com>
cc: Marc Dionne <marc.dionne@auristor.com>
cc: linux-afs@lists.infradead.org
Diffstat (limited to 'net/rxrpc/misc.c')
-rw-r--r-- | net/rxrpc/misc.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/net/rxrpc/misc.c b/net/rxrpc/misc.c index 056c428d8bf3..825b81183046 100644 --- a/net/rxrpc/misc.c +++ b/net/rxrpc/misc.c @@ -53,3 +53,10 @@ unsigned int rxrpc_rx_mtu = 5692; * sender that we're willing to handle. */ unsigned int rxrpc_rx_jumbo_max = 4; + +#ifdef CONFIG_AF_RXRPC_INJECT_RX_DELAY +/* + * The delay to inject into packet reception. + */ +unsigned long rxrpc_inject_rx_delay; +#endif |