diff options
author | Dave Barach <dbarach@cisco.com> | 2017-09-26 10:54:34 -0400 |
---|---|---|
committer | John Lo <loj@cisco.com> | 2017-09-26 17:17:09 +0000 |
commit | 69128d0209ba6108430dca9cc78ab36a9b1c793e (patch) | |
tree | 744b543327338d10594c2578f66ec250d3947070 /src/vnet | |
parent | 8a398bbae279f07b1f9203721836b60dd1f39142 (diff) |
Add thread-safe event signaller, use RPC where required
Update ping code to use the new function
Change-Id: Ieb753b23f8402cbe5667c22747896784c8ece937
Signed-off-by: Florin Coras <fcoras@cisco.com>
Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'src/vnet')
-rwxr-xr-x | src/vnet/ip/ping.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vnet/ip/ping.c b/src/vnet/ip/ping.c index c847e696917..0fa537f6281 100755 --- a/src/vnet/ip/ping.c +++ b/src/vnet/ip/ping.c @@ -97,7 +97,7 @@ signal_ip46_icmp_reply_event (u8 event_type, vlib_buffer_t * b0) clib_memcpy (vnet_buffer (vlib_get_buffer (vm, bi0_copy))->unused, &nowts, sizeof (nowts)); - vlib_process_signal_event (vm, pr->cli_process_id, event_type, bi0_copy); + vlib_process_signal_event_mt (vm, pr->cli_process_id, event_type, bi0_copy); return 1; } @@ -646,7 +646,7 @@ run_ping_ip46_address (vlib_main_t * vm, u32 table_id, ip4_address_t * pa4, i = 1 + ping_repeat; break; } - vec_free(event_data); + vec_free (event_data); } } vlib_cli_output (vm, "\n"); |