From 5a7ab644d25e734c4391ae13c344469ee880ce30 Mon Sep 17 00:00:00 2001 From: Mike Belopuhov Date: Mon, 17 Dec 2012 14:03:04 +0000 Subject: Don't forget to decrement a number of clusters on the ring in case of an error. Previous change made the problem evident. --- sys/dev/pci/if_ix.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sys/dev/pci/if_ix.c') diff --git a/sys/dev/pci/if_ix.c b/sys/dev/pci/if_ix.c index 6a026d0ff6b..1dfa8b34236 100644 --- a/sys/dev/pci/if_ix.c +++ b/sys/dev/pci/if_ix.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ix.c,v 1.81 2012/12/17 13:46:23 mikeb Exp $ */ +/* $OpenBSD: if_ix.c,v 1.82 2012/12/17 14:03:03 mikeb Exp $ */ /****************************************************************************** @@ -2988,9 +2988,8 @@ ixgbe_rxeof(struct ix_queue *que) ether_input_mbuf(ifp, sendmp); } - - rxr->rx_ndescs--; next_desc: + rxr->rx_ndescs--; bus_dmamap_sync(rxr->rxdma.dma_tag, rxr->rxdma.dma_map, dsize * i, dsize, BUS_DMASYNC_PREREAD); -- cgit v1.2.3