svn commit: r261533 - head/sys/dev/cxgbe

Navdeep Parhar np at FreeBSD.org
Thu Feb 6 02:34:30 UTC 2014


Author: np
Date: Thu Feb  6 02:34:29 2014
New Revision: 261533
URL: http://svnweb.freebsd.org/changeset/base/261533

Log:
  cxgbe(4): Use the port's tx channel to identify it to t4_clr_port_stats.
  
  MFC after:	3 days

Modified:
  head/sys/dev/cxgbe/t4_main.c

Modified: head/sys/dev/cxgbe/t4_main.c
==============================================================================
--- head/sys/dev/cxgbe/t4_main.c	Thu Feb  6 02:12:39 2014	(r261532)
+++ head/sys/dev/cxgbe/t4_main.c	Thu Feb  6 02:34:29 2014	(r261533)
@@ -7778,11 +7778,11 @@ t4_ioctl(struct cdev *dev, unsigned long
 
 		if (port_id >= sc->params.nports)
 			return (EINVAL);
+		pi = sc->port[port_id];
 
 		/* MAC stats */
-		t4_clr_port_stats(sc, port_id);
+		t4_clr_port_stats(sc, pi->tx_chan);
 
-		pi = sc->port[port_id];
 		if (pi->flags & PORT_INIT_DONE) {
 			struct sge_rxq *rxq;
 			struct sge_txq *txq;


More information about the svn-src-head mailing list