diff options
author | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2012-12-17 14:03:04 +0000 |
---|---|---|
committer | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2012-12-17 14:03:04 +0000 |
commit | 5a7ab644d25e734c4391ae13c344469ee880ce30 (patch) | |
tree | be204e227045316bb5989e8deebc9855e111cbd9 /sys | |
parent | 466693721f7a72fa0d0a268965cb5378aa560cd1 (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')
-rw-r--r-- | sys/dev/pci/if_ix.c | 5 |
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); |