aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/ip/ping.h
diff options
context:
space:
mode:
authorMohammed Hawari <mhawari@cisco.com>2017-07-18 09:25:01 +0200
committerJohn Lo <loj@cisco.com>2017-07-27 22:10:26 +0000
commit03a6213fb5022d37ea92f974a1814db1c70bcbdf (patch)
treece6555a1c29fb065b801d5623ab2f353a51479e6 /src/vnet/ip/ping.h
parentc418e4ac7cf36bd64f3130c258d5f1897c245f2b (diff)
ping: fixing wrong value when there are worker threads
- the echo_reply_node is now notifying the cli process on the main thread/vlib_main - the timestamp for the icmp reply is now acquired in the echo_reply_node and not in the cli process to avoid an off by 10ms error (see 【vpp-dev】delay is error in ping with multi worker thread) Change-Id: I21d37002b0376b4f2ccab08d8f04c2f2944b9b39 Signed-off-by: Mohammed Hawari <mhawari@cisco.com>
Diffstat (limited to 'src/vnet/ip/ping.h')
-rw-r--r--src/vnet/ip/ping.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vnet/ip/ping.h b/src/vnet/ip/ping.h
index 0af9d5871f1..b1b71f685fe 100644
--- a/src/vnet/ip/ping.h
+++ b/src/vnet/ip/ping.h
@@ -43,6 +43,7 @@ typedef struct ping_run_t
u16 icmp_id;
u16 curr_seq;
uword cli_process_id;
+ uword cli_thread_index;
} ping_run_t;
typedef struct ping_main_t