Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Feb 2014 02:34:30 +0000 (UTC)
From:      Navdeep Parhar <np@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r261533 - head/sys/dev/cxgbe
Message-ID:  <201402060234.s162YUPC077121@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201402060234.s162YUPC077121>