Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F178171264
D62256.1796179621.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
D62256.1796179621.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Wed, Dec 2, 2:47 AM (23 h, 14 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42135803
Default Alt Text
D62256.1796179621.diff (1 KB)
Attached To
Mode
D62256: netisr: use enum for nws_flags
Attached
Detach File
Event Timeline