SPAN: Add pending frame on current thread, not on main 07/18607/1
authorIgor Mikhailov (imichail) <imichail@cisco.com>
Sat, 30 Mar 2019 02:25:15 +0000 (19:25 -0700)
committerIgor Mikhailov (imichail) <imichail@cisco.com>
Sat, 30 Mar 2019 02:25:15 +0000 (19:25 -0700)
commit2d6fc6b082c9b4bf9481b58f68def13792822805
tree311546c57cb3cb531fb0c4da72e7a484960635f1
parent19e540f73e60ccd47b0fbc0fbf543ba1703a2e5c
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>
src/vnet/span/node.c