summaryrefslogtreecommitdiffstats
path: root/freebsd/net/netisr.c
diff options
context:
space:
mode:
authorJennifer Averett <jennifer.averett@oarcorp.com>2012-06-01 13:56:20 -0500
committerJennifer Averett <jennifer.averett@oarcorp.com>2012-06-01 13:56:20 -0500
commit1e88db132190674e7bbb12f4b1874b33df4f5de7 (patch)
tree2f8960269c5c49ea60a6bb80714122266ef11080 /freebsd/net/netisr.c
parentRestored debug off state for uma_core.c (diff)
downloadrtems-libbsd-1e88db132190674e7bbb12f4b1874b33df4f5de7.tar.bz2
Added initialization needed for Nics back in.
Diffstat (limited to 'freebsd/net/netisr.c')
-rw-r--r--freebsd/net/netisr.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/freebsd/net/netisr.c b/freebsd/net/netisr.c
index 6aced370..aea825f4 100644
--- a/freebsd/net/netisr.c
+++ b/freebsd/net/netisr.c
@@ -669,7 +669,6 @@ netisr_select_cpuid(struct netisr_proto *npp, uintptr_t source,
}
}
-#ifndef __rtems__
/*
* Process packets associated with a workstream and protocol. For reasons of
* fairness, we process up to one complete netisr queue at a time, moving the
@@ -780,7 +779,6 @@ out:
netisr_pollmore();
#endif
}
-#endif /* __rtems__ */
static int
netisr_queue_workstream(struct netisr_workstream *nwsp, u_int proto,
@@ -1016,7 +1014,6 @@ netisr_dispatch(u_int proto, struct mbuf *m)
return (netisr_dispatch_src(proto, 0, m));
}
-#ifndef __rtems__
#ifdef DEVICE_POLLING
/*
* Kernel polling borrows a netisr thread to run interface polling in; this
@@ -1051,12 +1048,14 @@ netisr_start_swi(u_int cpuid, struct pcpu *pc)
if (error)
panic("%s: swi_add %d", __func__, error);
pc->pc_netisr = nwsp->nws_intr_event;
+#ifndef __rtems__
if (netisr_bindthreads) {
error = intr_event_bind(nwsp->nws_intr_event, cpuid);
if (error != 0)
printf("%s: cpu %u: intr_event_bind: %d", __func__,
cpuid, error);
}
+#endif
NETISR_WLOCK();
nws_array[nws_count] = nwsp->nws_cpu;
nws_count++;
@@ -1167,4 +1166,3 @@ DB_SHOW_COMMAND(netisr, db_show_netisr)
}
}
#endif
-#endif /* __rtems__ */