aboutsummaryrefslogtreecommitdiff
path: root/sys/pci/if_mx.c
diff options
context:
space:
mode:
authorBill Paul <wpaul@FreeBSD.org>1999-01-03 02:05:21 +0000
committerBill Paul <wpaul@FreeBSD.org>1999-01-03 02:05:21 +0000
commit57ff492d3e3fcfe7fcda214e2d14e5749ec52568 (patch)
tree9b267a6b938b4a369301a38d574dc6c4f8b66b31 /sys/pci/if_mx.c
parent600c04ff9365534b1a118e4ade6251151585285d (diff)
downloadsrc-57ff492d3e3fcfe7fcda214e2d14e5749ec52568.tar.gz
src-57ff492d3e3fcfe7fcda214e2d14e5749ec52568.zip
Minor bug: in the case where allocating a fresh mbuf for the receive ring
fails, we need to set the descriptor status word so that the 'OWN' bit is set again so that the chip can reuse it. Previously, this wasn't being done.
Notes
Notes: svn path=/head/; revision=42260
Diffstat (limited to 'sys/pci/if_mx.c')
-rw-r--r--sys/pci/if_mx.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/pci/if_mx.c b/sys/pci/if_mx.c
index 1747b2d40373..b1095dcf186f 100644
--- a/sys/pci/if_mx.c
+++ b/sys/pci/if_mx.c
@@ -29,7 +29,7 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
* THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: if_mx.c,v 1.5 1998/12/14 06:32:55 dillon Exp $
+ * $Id: if_mx.c,v 1.6 1998/12/24 19:10:05 wpaul Exp $
*/
/*
@@ -94,7 +94,7 @@
#ifndef lint
static const char rcsid[] =
- "$Id: if_mx.c,v 1.5 1998/12/14 06:32:55 dillon Exp $";
+ "$Id: if_mx.c,v 1.6 1998/12/24 19:10:05 wpaul Exp $";
#endif
/*
@@ -1671,8 +1671,7 @@ static void mx_rxeof(sc)
*/
if (mx_newbuf(sc, cur_rx) == ENOBUFS) {
ifp->if_ierrors++;
- cur_rx->mx_ptr->mx_status =
- MX_RXSTAT_FIRSTFRAG|MX_RXSTAT_LASTFRAG;
+ cur_rx->mx_ptr->mx_status = MX_RXSTAT;
cur_rx->mx_ptr->mx_ctl =
MX_RXCTL_RLINK | (MCLBYTES - 1);
continue;