SPAN: Add pending frame on current thread, not on main 09/18609/1
authorIgor Mikhailov (imichail) <[email protected]>
Sat, 30 Mar 2019 02:25:15 +0000 (19:25 -0700)
committerJohn Lo <[email protected]>
Sat, 30 Mar 2019 04:57:24 +0000 (04:57 +0000)
commit2f4c7ec46fe1f88aa58c2cde3dd4c97f65b4264b
tree37acc2a54d1b705051d45d2eb21a1f725d2cb6fa
parent8d6723968945d686b94f780b5a755fd3a73d4be6
SPAN: Add pending frame on current thread, not on main

Previously, all frames were put for next node on the main thread,
even if the execution was happening on a worker thread.

Also, refactor to use API function vnet_get_main()

Change-Id: Ibefb1b3871563a78aa30352a37b9216537e15bf7
Signed-off-by: Igor Mikhailov (imichail) <[email protected]>
(cherry picked from commit 2d6fc6b082c9b4bf9481b58f68def13792822805)
src/vnet/span/node.c