aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/bge
diff options
context:
space:
mode:
authorOleg Bulyzhin <oleg@FreeBSD.org>2006-02-01 15:16:03 +0000
committerOleg Bulyzhin <oleg@FreeBSD.org>2006-02-01 15:16:03 +0000
commitcfcb50259dc2ae0280ae97f9cd960ebcdede240d (patch)
tree4a62a358472257c5e5d70954bb188891344c79a3 /sys/dev/bge
parentf1650f412f07e3317581a5120fe6751a29d2f57d (diff)
Notes
Diffstat (limited to 'sys/dev/bge')
-rw-r--r--sys/dev/bge/if_bge.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/sys/dev/bge/if_bge.c b/sys/dev/bge/if_bge.c
index e95805c472870..7a83bb4afcca8 100644
--- a/sys/dev/bge/if_bge.c
+++ b/sys/dev/bge/if_bge.c
@@ -2520,6 +2520,11 @@ bge_rxeof(sc)
BGE_LOCK_ASSERT(sc);
+ /* Nothing to do */
+ if (sc->bge_rx_saved_considx ==
+ sc->bge_ldata.bge_status_block->bge_idx[0].bge_rx_prod_idx)
+ return;
+
ifp = sc->bge_ifp;
bus_dmamap_sync(sc->bge_cdata.bge_rx_return_ring_tag,
@@ -2666,8 +2671,6 @@ bge_rxeof(sc)
CSR_WRITE_4(sc, BGE_MBX_RX_STD_PROD_LO, sc->bge_std);
if (jumbocnt)
CSR_WRITE_4(sc, BGE_MBX_RX_JUMBO_PROD_LO, sc->bge_jumbo);
-
- return;
}
static void
@@ -2679,6 +2682,11 @@ bge_txeof(sc)
BGE_LOCK_ASSERT(sc);
+ /* Nothing to do */
+ if (sc->bge_tx_saved_considx ==
+ sc->bge_ldata.bge_status_block->bge_idx[0].bge_tx_cons_idx)
+ return;
+
ifp = sc->bge_ifp;
bus_dmamap_sync(sc->bge_cdata.bge_tx_ring_tag,
@@ -2712,8 +2720,6 @@ bge_txeof(sc)
if (cur_tx != NULL)
ifp->if_drv_flags &= ~IFF_DRV_OACTIVE;
-
- return;
}
#ifdef DEVICE_POLLING