vlib: clean up the "pcap dispatch trace" debug CLI 17/21617/5
authorDave Barach <dave@barachs.net>
Thu, 29 Aug 2019 22:01:30 +0000 (18:01 -0400)
committerFlorin Coras <florin.coras@gmail.com>
Sat, 7 Sep 2019 15:54:50 +0000 (15:54 +0000)
commite5948fb49a6eeaf437323cc1043a350cd33bcd47
treeb49559bf830226e6ce5041775251d57e5a9a9d77
parentc4abafd83df38051765352785b146277734701f4
vlib: clean up the "pcap dispatch trace" debug CLI

Separate debug CLI arg parsing from the underlying action
function. Fixes a number of subtle ordering dependencies, and will
allow us to add a binary API to control the feature at some point in
the future.

Type: refactor
Ticket: VPP-1762

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