misc: clean up "pcap [rx|tx] trace" debug CLI 44/21944/2
authorDave Barach <dave@barachs.net>
Mon, 9 Sep 2019 20:38:17 +0000 (16:38 -0400)
committerDamjan Marion <dmarion@me.com>
Tue, 10 Sep 2019 14:51:02 +0000 (14:51 +0000)
commitb97641c79f4aaf0069268c550f263167ddea2b34
tree26c8401461d0f99aab3895a03f32844b16fa6d35
parent61a89f2b614184eeced3f67affed959897d4da18
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 <dave@barachs.net>
Change-Id: Id0dbeda06dad20e756c941c691e2088ce3c50ec7
extras/pcapcli/setup.pcapcli [new file with mode: 0644]
src/vlib/main.c
src/vnet/interface.h
src/vnet/interface_cli.c