Page MenuHomeFreeBSD

D62257.1796181691.diff
No OneTemporary

Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None

D62257.1796181691.diff

diff --git a/sys/net/netisr.c b/sys/net/netisr.c
--- a/sys/net/netisr.c
+++ b/sys/net/netisr.c
@@ -1328,7 +1328,6 @@
SWI_NET, INTR_TYPE_NET | INTR_MPSAFE, &nwsp->nws_swi_cookie);
if (error)
panic("%s: swi_add %d", __func__, error);
- pc->pc_netisr = nwsp->nws_intr_event;
if (netisr_bindthreads) {
error = intr_event_bind(nwsp->nws_intr_event, cpuid);
if (error != 0)
@@ -1383,41 +1382,14 @@
}
#endif
-#ifdef EARLY_AP_STARTUP
STAILQ_FOREACH(pc, &cpuhead, pc_allcpu) {
if (nws_count >= netisr_maxthreads)
break;
netisr_start_swi(pc->pc_cpuid, pc);
}
-#else
- pc = get_pcpu();
- netisr_start_swi(pc->pc_cpuid, pc);
-#endif
}
SYSINIT(netisr_init, SI_SUB_SOFTINTR, SI_ORDER_FIRST, netisr_init, NULL);
-#ifndef EARLY_AP_STARTUP
-/*
- * Start worker threads for additional CPUs. No attempt to gracefully handle
- * work reassignment, we don't yet support dynamic reconfiguration.
- */
-static void
-netisr_start(void *arg)
-{
- struct pcpu *pc;
-
- STAILQ_FOREACH(pc, &cpuhead, pc_allcpu) {
- if (nws_count >= netisr_maxthreads)
- break;
- /* Worker will already be present for boot CPU. */
- if (pc->pc_netisr != NULL)
- continue;
- netisr_start_swi(pc->pc_cpuid, pc);
- }
-}
-SYSINIT(netisr_start, SI_SUB_SMP, SI_ORDER_MIDDLE, netisr_start, NULL);
-#endif
-
/*
* Sysctl monitoring for netisr: query a list of registered protocols.
*/
diff --git a/sys/sys/pcpu.h b/sys/sys/pcpu.h
--- a/sys/sys/pcpu.h
+++ b/sys/sys/pcpu.h
@@ -186,7 +186,7 @@
struct lock_list_entry *pc_spinlocks;
long pc_cp_time[CPUSTATES]; /* statclock ticks */
struct _device *pc_device; /* CPU device handle */
- void *pc_netisr; /* netisr SWI cookie */
+ void *pc_unused2; /* available */
int8_t pc_vfs_freevnodes; /* freevnodes counter */
char pc_unused1[3]; /* unused pad */
int pc_domain; /* Memory domain. */

File Metadata

Mime Type
text/plain
Expires
Wed, Dec 2, 3:21 AM (23 h, 49 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42136176
Default Alt Text
D62257.1796181691.diff (1 KB)

Event Timeline