Page MenuHomeFreeBSD

D34039.id101928.diff
No OneTemporary

D34039.id101928.diff

Index: sys/net/vnet.h
===================================================================
--- sys/net/vnet.h
+++ sys/net/vnet.h
@@ -64,7 +64,7 @@
* pointer to storage for virtualized global variables. Expose to userspace
* as required for libkvm.
*/
-#if defined(_KERNEL) || defined(_WANT_VNET)
+#if defined(_KERNEL) || defined(_WANT_VNET) || defined(_KERNEL_UT)
#include <sys/queue.h>
struct vnet {
@@ -87,7 +87,7 @@
#define VNET_SYMPREFIX "vnet_entry_"
#endif
-#ifdef _KERNEL
+#if defined(_KERNEL) || defined(_KERNEL_UT)
#define VNET_PCPUSTAT_DECLARE(type, name) \
VNET_DECLARE(counter_u64_t, name[sizeof(type) / sizeof(uint64_t)])
@@ -452,6 +452,6 @@
#define VNET_GLOBAL_EVENTHANDLER_REGISTER(name, func, arg, priority) \
eventhandler_register(NULL, #name, func, arg, priority)
#endif /* VIMAGE */
-#endif /* _KERNEL */
+#endif /* _KERNEL || _KERNEL_UT_VNET_ */
#endif /* !_NET_VNET_H_ */

File Metadata

Mime Type
text/plain
Expires
Fri, Dec 27, 9:26 PM (8 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15617804
Default Alt Text
D34039.id101928.diff (923 B)

Event Timeline