ping: fixing wrong value when there are worker threads 43/7943/1
authorMohammed Hawari <mhawari@cisco.com>
Tue, 18 Jul 2017 07:25:01 +0000 (09:25 +0200)
committerSteve Heckman <Steve.Heckman@arris.com>
Tue, 8 Aug 2017 18:30:55 +0000 (18:30 +0000)
commitb7cd108399c8e9958f1822dbfb0d674a96fc97a4
tree2bf8aba87dea50476d0904d81f6e09f16013eb28
parent58013b73509521789608f24a79a00177797ff9b1
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>
(cherry picked from commit 03a6213fb5022d37ea92f974a1814db1c70bcbdf)
src/vnet/ip/ping.c
src/vnet/ip/ping.h