Clean up packet tracer, especially "clear trace" 31/14331/3
authorDave Barach <dave@barachs.net>
Fri, 17 Aug 2018 22:29:07 +0000 (18:29 -0400)
committerDamjan Marion <dmarion@me.com>
Fri, 24 Aug 2018 19:03:12 +0000 (19:03 +0000)
commitf8b8586b699bae9e786726f2697c3e642d904c61
treef8be5022a5e6b1ce80023be6b3a02d241f40b466
parenta9aedb681feb0a489b1b78435794081ecd5b88fc
Clean up packet tracer, especially "clear trace"

There are multiple trace enablement schemes. It's easy to end up in
vlib_add_trace with tracing disabled insofar as the packet tracer is
concerned. When that happens, return the address of a per-system
dummy trace record.

Change-Id: I929391b8be4ed57e26e291afdc509a15f09a3160
Signed-off-by: Dave Barach <dave@barachs.net>
src/vlib/trace.c
src/vlib/trace.h
src/vlib/trace_funcs.h