summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/if_bge.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/pci/if_bge.c')
-rw-r--r--sys/dev/pci/if_bge.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/dev/pci/if_bge.c b/sys/dev/pci/if_bge.c
index 2f62a6cefda..8ec4a8b1f42 100644
--- a/sys/dev/pci/if_bge.c
+++ b/sys/dev/pci/if_bge.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_bge.c,v 1.359 2014/08/21 14:30:21 brad Exp $ */
+/* $OpenBSD: if_bge.c,v 1.360 2014/08/26 11:01:21 mikeb Exp $ */
/*
* Copyright (c) 2001 Wind River Systems
@@ -1301,12 +1301,11 @@ bge_fill_rx_ring_std(struct bge_softc *sc)
if (bge_newbuf(sc, i) != 0)
break;
+ sc->bge_std = i;
post = 1;
}
if_rxr_put(&sc->bge_std_ring, slots);
- sc->bge_std = i;
-
if (post)
bge_writembx(sc, BGE_MBX_RX_STD_PROD_LO, sc->bge_std);
@@ -1406,12 +1405,11 @@ bge_fill_rx_ring_jumbo(struct bge_softc *sc)
if (bge_newbuf_jumbo(sc, i) != 0)
break;
+ sc->bge_jumbo = i;
post = 1;
}
if_rxr_put(&sc->bge_jumbo_ring, slots);
- sc->bge_jumbo = i;
-
if (post)
bge_writembx(sc, BGE_MBX_RX_JUMBO_PROD_LO, sc->bge_jumbo);