]> git.baikalelectronics.ru Git - 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)
commit1d8f43bbeb3abb22f73a497a82a0274092b12d4e
tree12f2fa34048a73aae064a02fa15417b4c70b3573
parent8fc72720e6c027b0653b6968e310c8b83cc40066
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