summaryrefslogtreecommitdiff
path: root/sys/arch/octeon
diff options
context:
space:
mode:
authorVisa Hankala <visa@cvs.openbsd.org>2015-11-13 14:43:34 +0000
committerVisa Hankala <visa@cvs.openbsd.org>2015-11-13 14:43:34 +0000
commit723193cd9ec0da945c12d186314c559c7ec68801 (patch)
tree9d9f7c0e2d88159d7b52ca83643b0e024d7362f1 /sys/arch/octeon
parent29389d43492e7a2e5d11d62227ad99717c796098 (diff)
Remove an unnecessary IFQ_POLL(), along with an unused #ifdef block.
ok mpi@
Diffstat (limited to 'sys/arch/octeon')
-rw-r--r--sys/arch/octeon/dev/if_cnmac.c26
1 files changed, 3 insertions, 23 deletions
diff --git a/sys/arch/octeon/dev/if_cnmac.c b/sys/arch/octeon/dev/if_cnmac.c
index 23a07e4d7d3..b907caa0043 100644
--- a/sys/arch/octeon/dev/if_cnmac.c
+++ b/sys/arch/octeon/dev/if_cnmac.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_cnmac.c,v 1.29 2015/10/28 14:04:17 visa Exp $ */
+/* $OpenBSD: if_cnmac.c,v 1.30 2015/11/13 14:43:33 visa Exp $ */
/*
* Copyright (c) 2007 Internet Initiative Japan, Inc.
@@ -1036,10 +1036,6 @@ octeon_eth_start(struct ifnet *ifp)
}
for (;;) {
- IFQ_POLL(&ifp->if_snd, m);
- if (__predict_false(m == NULL))
- break;
-
octeon_eth_send_queue_flush_fetch(sc); /* XXX */
/*
@@ -1053,6 +1049,8 @@ octeon_eth_start(struct ifnet *ifp)
/* XXX */
IFQ_DEQUEUE(&ifp->if_snd, m);
+ if (m == NULL)
+ return;
OCTEON_ETH_TAP(ifp, m, BPF_DIRECTION_OUT);
@@ -1074,24 +1072,6 @@ octeon_eth_start(struct ifnet *ifp)
octeon_eth_send_queue_flush_prefetch(sc);
}
-/*
- * XXXSEIL
- * Don't schedule send-buffer-free callout every time - those buffers are freed
- * by "free tick". This makes some packets like NFS slower, but it normally
- * doesn't happen on SEIL.
- */
-#ifdef OCTEON_ETH_USENFS
- if (__predict_false(sc->sc_ext_callback_cnt > 0)) {
- int timo;
-
- /* ??? */
- timo = hz - (100 * sc->sc_ext_callback_cnt);
- if (timo < 10)
- timo = 10;
- callout_schedule(&sc->sc_tick_free_ch, timo);
- }
-#endif
-
last:
octeon_eth_send_queue_flush_fetch(sc);
}