summaryrefslogtreecommitdiff
path: root/net/rxrpc/Kconfig
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2016-09-17 10:49:15 +0100
committerDavid Howells <dhowells@redhat.com>2016-09-17 11:24:04 +0100
commit8a681c360559f75a80b37e6a6a9590457361ccb0 (patch)
tree12f2fa34048a73aae064a02fa15417b4c70b3573 /net/rxrpc/Kconfig
parent71f3ca408fd43b586c02480768a503af075b247e (diff)
rxrpc: Add config to inject packet loss
Add a configuration option to inject packet loss by discarding approximately every 8th packet received and approximately every 8th DATA packet transmitted. Note that no locking is used, but it shouldn't really matter. Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'net/rxrpc/Kconfig')
-rw-r--r--net/rxrpc/Kconfig7
1 files changed, 7 insertions, 0 deletions
diff --git a/net/rxrpc/Kconfig b/net/rxrpc/Kconfig
index 13396c74b5c1..86f8853a038c 100644
--- a/net/rxrpc/Kconfig
+++ b/net/rxrpc/Kconfig
@@ -26,6 +26,13 @@ config AF_RXRPC_IPV6
Say Y here to allow AF_RXRPC to use IPV6 UDP as well as IPV4 UDP as
its network transport.
+config AF_RXRPC_INJECT_LOSS
+ bool "Inject packet loss into RxRPC packet stream"
+ depends on AF_RXRPC
+ help
+ Say Y here to inject packet loss by discarding some received and some
+ transmitted packets.
+
config AF_RXRPC_DEBUG
bool "RxRPC dynamic debugging"