diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2014-07-09 00:15:21 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2014-07-09 00:15:21 +0000 |
commit | 0c8ccc6d885c24b8159dbb43b0e2bbe08d0928d2 (patch) | |
tree | 5c3744ba85c44d345397ada8dbe722870d0719b3 | |
parent | e38cae75fb7f0f65f43cb0252a5f8190705e7681 (diff) |
avoid being too smart when filling the rx ring.
-rw-r--r-- | sys/dev/pci/if_msk.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_msk.c b/sys/dev/pci/if_msk.c index 7ca28629540..9c1e74eb0b9 100644 --- a/sys/dev/pci/if_msk.c +++ b/sys/dev/pci/if_msk.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_msk.c,v 1.103 2014/07/08 05:35:18 dlg Exp $ */ +/* $OpenBSD: if_msk.c,v 1.104 2014/07/09 00:15:20 dlg Exp $ */ /* * Copyright (c) 1997, 1998, 1999, 2000 @@ -1708,7 +1708,7 @@ msk_fill_rx_ring(struct sk_if_softc *sc_if) u_int slots, used; slots = if_rxr_get(&sc_if->sk_cdata.sk_rx_ring, MSK_RX_RING_CNT); - while (slots > SK_NRXSEG) { + while (slots > 0) { used = msk_newbuf(sc_if); if (used == 0) break; |