Author: arybchik
Date: Mon Feb 16 06:16:38 2015
New Revision: 278841
URL: https://svnweb.freebsd.org/changeset/base/278841

Log:
  sfxge: flush all Tx queues from if_qflush
  
  Sponsored by:   Solarflare Communications, Inc.
  Approved by:    gnn (mentor), glebius

Modified:
  head/sys/dev/sfxge/sfxge_tx.c

Modified: head/sys/dev/sfxge/sfxge_tx.c
==============================================================================
--- head/sys/dev/sfxge/sfxge_tx.c       Mon Feb 16 06:12:55 2015        
(r278840)
+++ head/sys/dev/sfxge/sfxge_tx.c       Mon Feb 16 06:16:38 2015        
(r278841)
@@ -649,7 +649,7 @@ sfxge_if_qflush(struct ifnet *ifp)
 
        sc = ifp->if_softc;
 
-       for (i = 0; i < SFXGE_TX_SCALE(sc); i++)
+       for (i = 0; i < SFXGE_TXQ_IP_TCP_UDP_CKSUM + SFXGE_TX_SCALE(sc); i++)
                sfxge_tx_qdpl_flush(sc->txq[i]);
 }
 
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to