summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_ix.c
diff options
context:
space:
mode:
authorMike Belopuhov <mikeb@cvs.openbsd.org>2012-12-17 14:03:04 +0000
committerMike Belopuhov <mikeb@cvs.openbsd.org>2012-12-17 14:03:04 +0000
commit5a7ab644d25e734c4391ae13c344469ee880ce30 (patch)
treebe204e227045316bb5989e8deebc9855e111cbd9 /sys/dev/pci/if_ix.c
parent466693721f7a72fa0d0a268965cb5378aa560cd1 (diff)
Don't forget to decrement a number of clusters on the ring in case
of an error. Previous change made the problem evident.
Diffstat (limited to 'sys/dev/pci/if_ix.c')
-rw-r--r--sys/dev/pci/if_ix.c5
1 files changed, 2 insertions, 3 deletions
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);