vlib: clean up the "pcap dispatch trace" debug CLI 84/21884/4
authorDave Barach <[email protected]>
Thu, 29 Aug 2019 22:01:30 +0000 (18:01 -0400)
committerFlorin Coras <[email protected]>
Mon, 9 Sep 2019 15:16:03 +0000 (15:16 +0000)
commit4c19bfd93f1daaff181fd072ca24acce5b000705
tree3cc92f80784eaab76181dabcbd5d2c4c5d13338b
parent30d28bdfd8aca4d6d3c70482ad9ebfdb753610aa
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 <[email protected]>
Change-Id: I1240fe3f61a0acf5ee9faed60d6ad3386e72e569
(cherry picked from commit e5948fb49a6eeaf437323cc1043a350cd33bcd47)
src/vlib/main.c
src/vlib/main.h
src/vppinfra/pcap_funcs.h