misc: clean up "pcap [rx|tx] trace" debug CLI 65/21965/2
authorDave Barach <[email protected]>
Mon, 9 Sep 2019 20:38:17 +0000 (16:38 -0400)
committerDave Barach <[email protected]>
Tue, 10 Sep 2019 19:20:08 +0000 (15:20 -0400)
commit4b943d632864949310da4c88ea00e59f6043ae40
tree0d88295ff7420659dcd25ad79a39dea1cc41c967
parent1dafb7fd83b36640557be41e6aa2ea95e663c40b
misc: clean up "pcap [rx|tx] 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-1770

Signed-off-by: Dave Barach <[email protected]>
Change-Id: Id0dbeda06dad20e756c941c691e2088ce3c50ec7
(cherry picked from commit b97641c79f4aaf0069268c550f263167ddea2b34)
extras/pcapcli/setup.pcapcli [new file with mode: 0644]
src/vlib/main.c
src/vnet/interface.h
src/vnet/interface_cli.c