summaryrefslogtreecommitdiffstats
path: root/freebsd/net/netisr.c
diff options
context:
space:
mode:
authorJennifer Averett <jennifer.averett@oarcorp.com>2012-04-17 13:16:36 -0500
committerJennifer Averett <jennifer.averett@oarcorp.com>2012-04-17 13:16:36 -0500
commit90cdcaea58aa3ae30234f54de8cc59cb9dd38346 (patch)
treed13b14eb94e18e6c1509b461f31e2febe770c73c /freebsd/net/netisr.c
parentFix NoConverter class inheritance (diff)
downloadrtems-libbsd-90cdcaea58aa3ae30234f54de8cc59cb9dd38346.tar.bz2
Commented out unused methods to resolve linker errors.
Diffstat (limited to 'freebsd/net/netisr.c')
-rw-r--r--freebsd/net/netisr.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/freebsd/net/netisr.c b/freebsd/net/netisr.c
index 97eeae16..a95390fe 100644
--- a/freebsd/net/netisr.c
+++ b/freebsd/net/netisr.c
@@ -297,6 +297,7 @@ SYSCTL_INT(_net_isr, OID_AUTO, numthreads, CTLFLAG_RD,
#define NWS_UNLOCK(s) mtx_unlock(&(s)->nws_mtx)
#define NWS_SIGNAL(s) swi_sched((s)->nws_swi_cookie, 0)
+#ifndef __rtems__
/*
* Utility routines for protocols that implement their own mapping of flows
* to CPUs.
@@ -330,6 +331,7 @@ netisr_default_flow2cpu(u_int flowid)
return (nws_array[flowid % nws_count]);
}
+#endif /* __rtems__ */
/*
* Register a new netisr handler, which requires initializing per-protocol
@@ -540,6 +542,7 @@ netisr_setqlimit(const struct netisr_handler *nhp, u_int qlimit)
return (0);
}
+#ifndef __rtems__
/*
* Drain all packets currently held in a particular protocol work queue.
*/
@@ -605,6 +608,7 @@ netisr_unregister(const struct netisr_handler *nhp)
}
NETISR_WUNLOCK();
}
+#endif /* __rtems__ */
/*
* Look up the workstream given a packet and source identifier. Do this by
@@ -665,6 +669,7 @@ 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
@@ -775,6 +780,7 @@ out:
netisr_pollmore();
#endif
}
+#endif /* __rtems__ */
static int
netisr_queue_workstream(struct netisr_workstream *nwsp, u_int proto,
@@ -875,6 +881,7 @@ netisr_queue(u_int proto, struct mbuf *m)
return (netisr_queue_src(proto, 0, m));
}
+#ifndef __rtems__
/*
* Dispatch a packet for netisr processing, direct dispatch permitted by
* calling context.
@@ -1156,3 +1163,4 @@ DB_SHOW_COMMAND(netisr, db_show_netisr)
}
}
#endif
+#endif /* __rtems__ */