SPAN: Add pending frame on current thread, not on main 08/18608/1
authorIgor Mikhailov (imichail) <imichail@cisco.com>
Sat, 30 Mar 2019 02:25:15 +0000 (19:25 -0700)
committerJohn Lo <loj@cisco.com>
Sat, 30 Mar 2019 04:56:58 +0000 (04:56 +0000)
commit1161ddaa6f7136cfbc541d4179420308a590d36e
tree0fc0de1790a9987d1a87b0cf4f7bf9b5737be6ca
parentfe18c808e2bf82508448046a2e4f89dfce0c0cee
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) <imichail@cisco.com>
(cherry picked from commit 2d6fc6b082c9b4bf9481b58f68def13792822805)
src/vnet/span/node.c