vlib: enable worker-thread dispatch pcap trace 23/23023/2
authorDave Barach <[email protected]>
Fri, 18 Oct 2019 18:44:05 +0000 (14:44 -0400)
committerAndrew Yourtchenko <[email protected]>
Tue, 29 Oct 2019 09:51:42 +0000 (09:51 +0000)
commitaad7fa7d6f590ac05d483d78b010eed5b531bf97
tree3fe33088c389797b9c5a0c820d1b813c4d4b76e6
parent270594b5d31614ad51912224dfede7075c2c5e99
vlib: enable worker-thread dispatch pcap trace

Needed a bit of foreach_vlib_main(...) action to turn on/off all
instances of vm->dispatch_pcap_enable, and to pick up the pcap_main_t
pointer from vlib_global_main.

Type: fix

Signed-off-by: Dave Barach <[email protected]>
Change-Id: I49b69b87934c7dc7a9835cd07aa2c5c4d3c79f18
(cherry picked from commit 349cd1af77a27962e9475e9fa9c0ed15e2af23de)
src/vlib/main.c