From 10c5ff143a86d15e78cb1f8625eb0ab8bf72b6ce Mon Sep 17 00:00:00 2001 From: Dave Barach Date: Thu, 6 Dec 2018 10:20:14 -0500 Subject: nsim: add packet loss simulation, docs Change-Id: Ic9747541aad8148ebf7d520b525b99c4cc3961f3 Signed-off-by: Dave Barach --- src/plugins/nsim/nsim.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/plugins/nsim/nsim.h') diff --git a/src/plugins/nsim/nsim.h b/src/plugins/nsim/nsim.h index d0b5ed32fee..c5264ecb244 100644 --- a/src/plugins/nsim/nsim.h +++ b/src/plugins/nsim/nsim.h @@ -54,6 +54,8 @@ typedef struct /* Two interfaces, cross-connected with delay */ u32 sw_if_index0, sw_if_index1; u32 output_next_index0, output_next_index1; + /* Random seed for loss-rate simulation */ + u32 seed; /* Per-thread buffer / scheduler wheels */ nsim_wheel_t **wheel_by_thread; @@ -63,6 +65,7 @@ typedef struct f64 delay; f64 bandwidth; f64 packet_size; + f64 drop_fraction; u64 mmap_size; -- cgit 1.2.3-korg