diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2006-08-01 23:50:15 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2006-08-01 23:50:15 +0000 |
commit | 934e414de794df263fa7dd9bf1d68f0d8f430bb4 (patch) | |
tree | abba8f6910bed37ddad690a82e99a1c11f42e6f9 /sys | |
parent | 2161eadc3fd63fed7b4b7821c96bdac73de6672d (diff) |
(em/ixgb)_(clean_transmit_interrupts/process_receive_interrupts) ->
(em/ixgb)_(txeof/rxeof)
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/if_em.c | 16 | ||||
-rw-r--r-- | sys/dev/pci/if_ixgb.c | 23 |
2 files changed, 20 insertions, 19 deletions
diff --git a/sys/dev/pci/if_em.c b/sys/dev/pci/if_em.c index d451add0d88..5db364b6c25 100644 --- a/sys/dev/pci/if_em.c +++ b/sys/dev/pci/if_em.c @@ -31,7 +31,7 @@ POSSIBILITY OF SUCH DAMAGE. ***************************************************************************/ -/* $OpenBSD: if_em.c,v 1.138 2006/07/10 00:16:18 drahn Exp $ */ +/* $OpenBSD: if_em.c,v 1.139 2006/08/01 23:50:14 brad Exp $ */ /* $FreeBSD: if_em.c,v 1.46 2004/09/29 18:28:28 mlaier Exp $ */ #include <dev/pci/if_em.h> @@ -146,10 +146,10 @@ void em_disable_intr(struct em_softc *); void em_free_transmit_structures(struct em_softc *); void em_free_receive_structures(struct em_softc *); void em_update_stats_counters(struct em_softc *); -void em_clean_transmit_interrupts(struct em_softc *); +void em_txeof(struct em_softc *); int em_allocate_receive_structures(struct em_softc *); int em_allocate_transmit_structures(struct em_softc *); -void em_process_receive_interrupts(struct em_softc *, int); +void em_rxeof(struct em_softc *, int); #ifdef __STRICT_ALIGNMENT void em_fixup_rx(struct em_softc *); #endif @@ -745,8 +745,8 @@ em_intr(void *arg) claimed = 1; if (ifp->if_flags & IFF_RUNNING) { - em_process_receive_interrupts(sc, -1); - em_clean_transmit_interrupts(sc); + em_rxeof(sc, -1); + em_txeof(sc); } /* Link status change */ @@ -906,7 +906,7 @@ em_encap(struct em_softc *sc, struct mbuf *m_head) * available hits the threshold */ if (sc->num_tx_desc_avail <= EM_TX_CLEANUP_THRESHOLD) { - em_clean_transmit_interrupts(sc); + em_txeof(sc); if (sc->num_tx_desc_avail <= EM_TX_CLEANUP_THRESHOLD) { sc->no_tx_desc_avail1++; return (ENOBUFS); @@ -2022,7 +2022,7 @@ em_transmit_checksum_setup(struct em_softc *sc, struct mbuf *mp, * **********************************************************************/ void -em_clean_transmit_interrupts(struct em_softc *sc) +em_txeof(struct em_softc *sc) { int i, num_avail; struct em_buffer *tx_buffer; @@ -2342,7 +2342,7 @@ em_free_receive_structures(struct em_softc *sc) * *********************************************************************/ void -em_process_receive_interrupts(struct em_softc *sc, int count) +em_rxeof(struct em_softc *sc, int count) { struct ifnet *ifp; struct mbuf *mp; diff --git a/sys/dev/pci/if_ixgb.c b/sys/dev/pci/if_ixgb.c index a51de7496a0..1e463027c27 100644 --- a/sys/dev/pci/if_ixgb.c +++ b/sys/dev/pci/if_ixgb.c @@ -31,7 +31,7 @@ POSSIBILITY OF SUCH DAMAGE. ***************************************************************************/ -/* $OpenBSD: if_ixgb.c,v 1.21 2006/07/10 00:25:23 brad Exp $ */ +/* $OpenBSD: if_ixgb.c,v 1.22 2006/08/01 23:50:14 brad Exp $ */ #include <dev/pci/if_ixgb.h> @@ -87,10 +87,10 @@ void ixgb_disable_intr(struct ixgb_softc *); void ixgb_free_transmit_structures(struct ixgb_softc *); void ixgb_free_receive_structures(struct ixgb_softc *); void ixgb_update_stats_counters(struct ixgb_softc *); -void ixgb_clean_transmit_interrupts(struct ixgb_softc *); +void ixgb_txeof(struct ixgb_softc *); int ixgb_allocate_receive_structures(struct ixgb_softc *); int ixgb_allocate_transmit_structures(struct ixgb_softc *); -void ixgb_process_receive_interrupts(struct ixgb_softc *, int); +void ixgb_rxeof(struct ixgb_softc *, int); void ixgb_receive_checksum(struct ixgb_softc *, struct ixgb_rx_desc * rx_desc, @@ -555,8 +555,8 @@ ixgb_intr(void *arg) rxdmt0 = TRUE; if (ifp->if_flags & IFF_RUNNING) { - ixgb_process_receive_interrupts(sc, -1); - ixgb_clean_transmit_interrupts(sc); + ixgb_rxeof(sc, -1); + ixgb_txeof(sc); } /* Link status change */ @@ -660,11 +660,12 @@ ixgb_encap(struct ixgb_softc *sc, struct mbuf *m_head) * Force a cleanup if number of TX descriptors available hits the * threshold */ - if (sc->num_tx_desc_avail <= IXGB_TX_CLEANUP_THRESHOLD) - ixgb_clean_transmit_interrupts(sc); if (sc->num_tx_desc_avail <= IXGB_TX_CLEANUP_THRESHOLD) { - sc->no_tx_desc_avail1++; - return (ENOBUFS); + ixgb_txeof(sc); + if (sc->num_tx_desc_avail <= IXGB_TX_CLEANUP_THRESHOLD) { + sc->no_tx_desc_avail1++; + return (ENOBUFS); + } } /* * Map the packet for DMA. @@ -1347,7 +1348,7 @@ ixgb_transmit_checksum_setup(struct ixgb_softc *sc, * **********************************************************************/ void -ixgb_clean_transmit_interrupts(struct ixgb_softc *sc) +ixgb_txeof(struct ixgb_softc *sc) { int i, num_avail; struct ixgb_buffer *tx_buffer; @@ -1683,7 +1684,7 @@ ixgb_free_receive_structures(struct ixgb_softc *sc) * *********************************************************************/ void -ixgb_process_receive_interrupts(struct ixgb_softc *sc, int count) +ixgb_rxeof(struct ixgb_softc *sc, int count) { struct ifnet *ifp; struct mbuf *mp; |