ping: fixing wrong value when there are worker threads 61/7661/5
authorMohammed Hawari <mhawari@cisco.com>
Tue, 18 Jul 2017 07:25:01 +0000 (09:25 +0200)
committerJohn Lo <loj@cisco.com>
Thu, 27 Jul 2017 22:10:26 +0000 (22:10 +0000)
commit03a6213fb5022d37ea92f974a1814db1c70bcbdf
treece6555a1c29fb065b801d5623ab2f353a51479e6
parentc418e4ac7cf36bd64f3130c258d5f1897c245f2b
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>
src/vnet/ip/ping.c
src/vnet/ip/ping.h