diff options
author | Steven <sluong@cisco.com> | 2018-10-26 20:10:49 -0700 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2018-10-27 09:05:44 +0000 |
commit | f9dafebc44c7b52605eed393a418f47ca3ce6990 (patch) | |
tree | ee555d454dd9725255b2f2b2e2c15fe4150db310 /src/plugins/vmxnet3/cli.c | |
parent | 5723f4a5c05dcf02b6676dd32f836d4021457dd6 (diff) |
vmxnet3: add logging support to the control plane [VPP-1470]
There are different flavors of vmxnet3 device, esxi server, vm fusion, vmware
workstation, and vmware player, that we need to communicate with. Each of
them also has different versions. We really need the control plane logging
to debug when things don't work as expected.
Change-Id: I53c23cf10958bfbc06abb1c252d368003563cd04
Signed-off-by: Steven <sluong@cisco.com>
Diffstat (limited to 'src/plugins/vmxnet3/cli.c')
-rw-r--r-- | src/plugins/vmxnet3/cli.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/vmxnet3/cli.c b/src/plugins/vmxnet3/cli.c index 1a97dc0d0fa..566b0d68079 100644 --- a/src/plugins/vmxnet3/cli.c +++ b/src/plugins/vmxnet3/cli.c @@ -567,9 +567,12 @@ VLIB_CLI_COMMAND (show_vmxnet3_command, static) = { clib_error_t * vmxnet3_cli_init (vlib_main_t * vm) { + vmxnet3_main_t *vmxm = &vmxnet3_main; + /* initialize binary API */ vmxnet3_plugin_api_hookup (vm); + vmxm->log_default = vlib_log_register_class ("vmxnet3", 0); return 0; } |