Page MenuHomeFreeBSD

D62256.1796179612.diff
No OneTemporary

Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None

D62256.1796179612.diff

diff --git a/sys/net/netisr.c b/sys/net/netisr.c
--- a/sys/net/netisr.c
+++ b/sys/net/netisr.c
@@ -126,7 +126,11 @@
void *nws_swi_cookie; /* swi(9) cookie for stream. */
struct mtx nws_mtx; /* Synchronize work. */
u_int nws_cpu; /* CPU pinning. */
- u_int nws_flags; /* Wakeup flags. */
+ enum __attribute__((flag_enum)) {
+ NWS_RUNNING = 0x00000001, /* running in a thread */
+ NWS_DISPATCHING = 0x00000002, /* being direct-dispatched */
+ NWS_SCHEDULED = 0x00000004, /* Signal issued. */
+ } nws_flags;
u_int nws_pendingbits; /* Scheduled protocols. */
/*
@@ -155,13 +159,6 @@
} nws_work[NETISR_MAXPROT];
} __aligned(CACHE_LINE_SIZE);
-/*
- * Per-workstream flags.
- */
-#define NWS_RUNNING 0x00000001 /* Currently running in a thread. */
-#define NWS_DISPATCHING 0x00000002 /* Currently being direct-dispatched. */
-#define NWS_SCHEDULED 0x00000004 /* Signal issued. */
-
/*-
* Synchronize use and modification of the registered netisr data structures;
* acquire a read lock while modifying the set of registered protocols to

File Metadata

Mime Type
text/plain
Expires
Wed, Dec 2, 2:46 AM (23 h, 14 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42135803
Default Alt Text
D62256.1796179612.diff (1 KB)

Event Timeline