summaryrefslogtreecommitdiffstats
path: root/sys/netinet/ip_dummynet.c
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2006-02-03 10:42:28 +0000
committerglebius <glebius@FreeBSD.org>2006-02-03 10:42:28 +0000
commit34c591bb1c198d5ad16eb7d55999e2bd7abcd507 (patch)
tree62bf7874158321bd2e12e5233b160cd1cda6ccbb /sys/netinet/ip_dummynet.c
parent20530f26148adb8591d1808e5a1db6a8de84307d (diff)
downloadFreeBSD-src-34c591bb1c198d5ad16eb7d55999e2bd7abcd507.zip
FreeBSD-src-34c591bb1c198d5ad16eb7d55999e2bd7abcd507.tar.gz
Axe unused function.
Diffstat (limited to 'sys/netinet/ip_dummynet.c')
-rw-r--r--sys/netinet/ip_dummynet.c38
1 files changed, 0 insertions, 38 deletions
diff --git a/sys/netinet/ip_dummynet.c b/sys/netinet/ip_dummynet.c
index 99e4189..db90b99 100644
--- a/sys/netinet/ip_dummynet.c
+++ b/sys/netinet/ip_dummynet.c
@@ -195,8 +195,6 @@ void dummynet_drain(void);
static ip_dn_io_t dummynet_io;
static void dn_rule_delete(void *);
-int if_tx_rdy(struct ifnet *ifp);
-
/*
* Heap management functions.
*
@@ -803,42 +801,6 @@ dummynet(void * __unused unused)
}
/*
- * called by an interface when tx_rdy occurs.
- */
-int
-if_tx_rdy(struct ifnet *ifp)
-{
- struct dn_pipe *pipe;
- int i;
-
- DUMMYNET_LOCK();
- for (i = 0; i < HASHSIZE; i++)
- SLIST_FOREACH(pipe, &pipehash[i], next)
- if (pipe->ifp == ifp)
- break;
- if (pipe == NULL) {
- for (i = 0; i < HASHSIZE; i++)
- SLIST_FOREACH(pipe, &pipehash[i], next)
- if (!strcmp(pipe->if_name, ifp->if_xname) ) {
- pipe->ifp = ifp ;
- DPRINTF(("dummynet: ++ tx rdy from %s (now found)\n",
- ifp->if_xname));
- break;
- }
- }
-
- if (pipe != NULL) {
- DPRINTF(("dummynet: ++ tx rdy from %s - qlen %d\n", ifp->if_xname,
- ifp->if_snd.ifq_len));
- pipe->numbytes = 0; /* Mark ready for I/O. */
- ready_event_wfq(pipe);
- }
- DUMMYNET_UNLOCK();
-
- return 0;
-}
-
-/*
* Unconditionally expire empty queues in case of shortage.
* Returns the number of queues freed.
*/
OpenPOWER on IntegriCloud