svn commit: r282581 - projects/em_mq/sys/dev/e1000
Sean Bruno
sbruno at FreeBSD.org
Thu May 7 15:12:56 UTC 2015
Author: sbruno
Date: Thu May 7 15:12:55 2015
New Revision: 282581
URL: https://svnweb.freebsd.org/changeset/base/282581
Log:
no need to iterate over the queues twice in em_debug_info()
Modified:
projects/em_mq/sys/dev/e1000/if_em.c
Modified: projects/em_mq/sys/dev/e1000/if_em.c
==============================================================================
--- projects/em_mq/sys/dev/e1000/if_em.c Thu May 7 15:10:40 2015 (r282580)
+++ projects/em_mq/sys/dev/e1000/if_em.c Thu May 7 15:12:55 2015 (r282581)
@@ -5918,7 +5918,7 @@ em_print_debug_info(struct adapter *adap
else
printf("and ACTIVE\n");
- for (int i = 0; i < adapter->num_queues; i++, txr++) {
+ for (int i = 0; i < adapter->num_queues; i++, txr++, rxr++) {
device_printf(dev, "TX Queue %d ------\n", i);
device_printf(dev, "hw tdh = %d, hw tdt = %d\n",
E1000_READ_REG(&adapter->hw, E1000_TDH(i)),
@@ -5928,8 +5928,6 @@ em_print_debug_info(struct adapter *adap
txr->tx_avail);
device_printf(dev, "Tx Descriptors avail failure = %ld\n",
txr->no_desc_avail);
- }
- for (int i = 0; i < adapter->num_queues; i++, rxr++) {
device_printf(dev, "RX Queue %d ------\n", i);
device_printf(dev, "hw rdh = %d, hw rdt = %d\n",
E1000_READ_REG(&adapter->hw, E1000_RDH(i)),
More information about the svn-src-projects
mailing list