Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F97811264
D33662.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D33662.diff
View Options
Index: sys/net/if.c
===================================================================
--- sys/net/if.c
+++ sys/net/if.c
@@ -337,11 +337,6 @@
SX_SYSINIT_FLAGS(ifnet_detach, &ifnet_detach_sxlock, "ifnet_detach_sx",
SX_RECURSE);
-#ifdef VIMAGE
-#define VNET_IS_SHUTTING_DOWN(_vnet) \
- ((_vnet)->vnet_shutdown && (_vnet)->vnet_state < SI_SUB_VNET_DONE)
-#endif
-
static if_com_alloc_t *if_com_alloc[256];
static if_com_free_t *if_com_free[256];
Index: sys/net/vnet.h
===================================================================
--- sys/net/vnet.h
+++ sys/net/vnet.h
@@ -240,6 +240,8 @@
extern struct vnet *vnet0;
#define IS_DEFAULT_VNET(arg) ((arg) == vnet0)
+#define VNET_IS_SHUTTING_DOWN(_vnet) \
+ ((_vnet)->vnet_shutdown && (_vnet)->vnet_state < SI_SUB_VNET_DONE)
#define CRED_TO_VNET(cr) (cr)->cr_prison->pr_vnet
#define TD_TO_VNET(td) CRED_TO_VNET((td)->td_ucred)
@@ -412,6 +414,7 @@
#define VNET_FOREACH(arg)
#define IS_DEFAULT_VNET(arg) 1
+#define VNET_IS_SHUTTING_DOWN(arg) false
#define CRED_TO_VNET(cr) NULL
#define TD_TO_VNET(td) NULL
#define P_TO_VNET(p) NULL
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Oct 2, 9:06 AM (2 h, 34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
13290148
Default Alt Text
D33662.diff (1 KB)
Attached To
Mode
D33662: vnet: make VNET_IS_SHUTTING_DOWN macro global.
Attached
Detach File
Event Timeline
Log In to Comment