Page MenuHomeFreeBSD

D33662.diff
No OneTemporary

D33662.diff

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

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)

Event Timeline