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

Navdeep Parhar np at FreeBSD.org
Thu Jul 4 20:17:39 UTC 2013


Author: np
Date: Thu Jul  4 20:17:39 2013
New Revision: 252724
URL: http://svnweb.freebsd.org/changeset/base/252724

Log:
  On-the-fly changes to the interrupt coalescing timer should apply to the
  TOE rx queues too.
  
  MFC after:	1 day

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

Modified: head/sys/dev/cxgbe/t4_main.c
==============================================================================
--- head/sys/dev/cxgbe/t4_main.c	Thu Jul  4 20:17:04 2013	(r252723)
+++ head/sys/dev/cxgbe/t4_main.c	Thu Jul  4 20:17:39 2013	(r252724)
@@ -4646,6 +4646,9 @@ sysctl_holdoff_tmr_idx(SYSCTL_HANDLER_AR
 	struct adapter *sc = pi->adapter;
 	int idx, rc, i;
 	struct sge_rxq *rxq;
+#ifdef TCP_OFFLOAD
+	struct sge_ofld_rxq *ofld_rxq;
+#endif
 	uint8_t v;
 
 	idx = pi->tmr_idx;
@@ -4670,6 +4673,15 @@ sysctl_holdoff_tmr_idx(SYSCTL_HANDLER_AR
 		rxq->iq.intr_params = v;
 #endif
 	}
+#ifdef TCP_OFFLOAD
+	for_each_ofld_rxq(pi, i, ofld_rxq) {
+#ifdef atomic_store_rel_8
+		atomic_store_rel_8(&ofld_rxq->iq.intr_params, v);
+#else
+		ofld_rxq->iq.intr_params = v;
+#endif
+	}
+#endif
 	pi->tmr_idx = idx;
 
 	end_synchronized_op(sc, LOCK_HELD);


More information about the svn-src-all mailing list