]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
rxrpc: Add config to inject packet loss
authorDavid Howells <dhowells@redhat.com>
Sat, 17 Sep 2016 09:49:15 +0000 (10:49 +0100)
committerDavid Howells <dhowells@redhat.com>
Sat, 17 Sep 2016 10:24:04 +0000 (11:24 +0100)
commit8a681c360559f75a80b37e6a6a9590457361ccb0
tree12f2fa34048a73aae064a02fa15417b4c70b3573
parent71f3ca408fd43b586c02480768a503af075b247e
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>
net/rxrpc/Kconfig
net/rxrpc/input.c
net/rxrpc/output.c