svn commit: r212012 - stable/7/sys/dev/alc

Pyun YongHyeon yongari at
Mon Aug 30 20:52:29 UTC 2010

Author: yongari
Date: Mon Aug 30 20:52:28 2010
New Revision: 212012

  MFC r210904:
    Reduce Tx interrupt moderation timer from 50ms to 1ms. The default
    value resulted in poor performance for UDP packets. With this
    change, UDP bulk transfer performance is more than 940Mbps.
    While I'm here fix a wrong register definition.

Directory Properties:
  stable/7/sys/   (props changed)
  stable/7/sys/cddl/contrib/opensolaris/   (props changed)
  stable/7/sys/contrib/dev/acpica/   (props changed)
  stable/7/sys/contrib/pf/   (props changed)

Modified: stable/7/sys/dev/alc/if_alcreg.h
--- stable/7/sys/dev/alc/if_alcreg.h	Mon Aug 30 20:49:51 2010	(r212011)
+++ stable/7/sys/dev/alc/if_alcreg.h	Mon Aug 30 20:52:28 2010	(r212012)
@@ -106,8 +106,8 @@
 #define	ALC_MASTER_CFG			0x1400
 #define	MASTER_RESET			0x00000001
+#define	MASTER_TEST_MODE_MASK		0x0000000C
 #define	MASTER_BERT_START		0x00000010
-#define	MASTER_TEST_MODE_MASK		0x000000C0
 #define	MASTER_MTIMER_ENB		0x00000100
 #define	MASTER_MANUAL_INTR_ENB		0x00000200
 #define	MASTER_IM_TX_TIMER_ENB		0x00000400
@@ -144,7 +144,7 @@
  * alc(4) does not rely on Tx completion interrupts, so set it
  * somewhat large value to reduce Tx completion interrupts.
-#define	ALC_IM_TX_TIMER_DEFAULT		50000	/* 50ms */
+#define	ALC_IM_TX_TIMER_DEFAULT		1000	/* 1ms */
 #define	ALC_GPHY_CFG			0x140C	/* 16bits */
 #define	GPHY_CFG_EXT_RESET		0x0001

More information about the svn-src-stable-7 mailing list