igb: The RDT writing thresh should be tested w/ ">=" instead of ">"
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Sun, 9 Dec 2012 13:08:08 +0000 (21:08 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Sun, 9 Dec 2012 13:14:16 +0000 (21:14 +0800)
sys/dev/netif/igb/if_igb.c

index 09a1c1d..9086d5b 100644 (file)
@@ -2549,7 +2549,7 @@ discard:
                if (++i == rxr->num_rx_desc)
                        i = 0;
 
-               if (ncoll > rxr->rx_wreg) {
+               if (ncoll >= rxr->rx_wreg) {
                        igb_rx_refresh(rxr, i);
                        ncoll = 0;
                }