summaryrefslogtreecommitdiffstats
path: root/sys/dev/vr
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>1999-01-03 02:05:21 +0000
committerwpaul <wpaul@FreeBSD.org>1999-01-03 02:05:21 +0000
commiteaf34b61debcf9c20d77082b95c926d76ec3c403 (patch)
tree5be0feacd34824d3cb8af8fe624c891f1e8d112e /sys/dev/vr
parentb98a934336d21627a61950307ffa8dcf38c401a3 (diff)
downloadFreeBSD-src-eaf34b61debcf9c20d77082b95c926d76ec3c403.zip
FreeBSD-src-eaf34b61debcf9c20d77082b95c926d76ec3c403.tar.gz
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.
Diffstat (limited to 'sys/dev/vr')
-rw-r--r--sys/dev/vr/if_vr.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/dev/vr/if_vr.c b/sys/dev/vr/if_vr.c
index 608d43b..53b0bc4 100644
--- a/sys/dev/vr/if_vr.c
+++ b/sys/dev/vr/if_vr.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_vr.c,v 1.4 1998/12/14 06:32:56 dillon Exp $
+ * $Id: if_vr.c,v 1.5 1998/12/24 18:03:17 wpaul Exp $
*/
/*
@@ -97,7 +97,7 @@
#ifndef lint
static const char rcsid[] =
- "$Id: if_vr.c,v 1.4 1998/12/14 06:32:56 dillon Exp $";
+ "$Id: if_vr.c,v 1.5 1998/12/24 18:03:17 wpaul Exp $";
#endif
/*
@@ -1303,8 +1303,7 @@ static void vr_rxeof(sc)
*/
if (vr_newbuf(sc, cur_rx) == ENOBUFS) {
ifp->if_ierrors++;
- cur_rx->vr_ptr->vr_status =
- VR_RXSTAT_FIRSTFRAG|VR_RXSTAT_LASTFRAG;
+ cur_rx->vr_ptr->vr_status = VR_RXSTAT;
cur_rx->vr_ptr->vr_ctl =
VR_RXCTL_CHAIN | (MCLBYTES - 1);
continue;
OpenPOWER on IntegriCloud