Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
avf plugin: add support for logging
[vpp.git]
/
src
/
plugins
/
avf
/
avf.h
diff --git
a/src/plugins/avf/avf.h
b/src/plugins/avf/avf.h
index
71e6f09
..
5db4074
100644
(file)
--- a/
src/plugins/avf/avf.h
+++ b/
src/plugins/avf/avf.h
@@
-17,6
+17,8
@@
#include <avf/virtchnl.h>
#include <avf/virtchnl.h>
+#include <vlib/log.h>
+
#define foreach_avf_device_flags \
_(0, INITIALIZED, "initialized") \
_(1, ERROR, "error") \
#define foreach_avf_device_flags \
_(0, INITIALIZED, "initialized") \
_(1, ERROR, "error") \
@@
-162,6
+164,8
@@
typedef struct
vlib_physmem_region_index_t physmem_region;
int physmem_region_alloc;
vlib_physmem_region_index_t physmem_region;
int physmem_region_alloc;
+ vlib_log_class_t log_class;
+
/* 256 element array for ptype based lookup */
avf_ptype_t *ptypes;
} avf_main_t;
/* 256 element array for ptype based lookup */
avf_ptype_t *ptypes;
} avf_main_t;