bnx: Commit coalesce parameters changes in polling code
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Sat, 24 Nov 2012 13:24:14 +0000 (21:24 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Sun, 25 Nov 2012 06:36:48 +0000 (14:36 +0800)
sys/dev/netif/bnx/if_bnx.c

index 1f5abb1..e86de2a 100644 (file)
@@ -2691,6 +2691,9 @@ bnx_npoll_compat(struct ifnet *ifp, void *arg __unused, int cycle __unused)
        tx_cons = sblk->bge_idx[0].bge_tx_cons_idx;
        if (sc->bnx_tx_saved_considx != tx_cons)
                bnx_txeof(sc, tx_cons);
+
+       if (sc->bnx_coal_chg)
+               bnx_coal_change(sc);
 }
 
 #endif /* IFPOLL_ENABLE */