svn commit: r218789 - head/sys/dev/dc

Pyun YongHyeon yongari at FreeBSD.org
Fri Feb 18 03:37:53 UTC 2011


Author: yongari
Date: Fri Feb 18 03:37:53 2011
New Revision: 218789
URL: http://svn.freebsd.org/changeset/base/218789

Log:
  Remove use case of DC_TX_ONE. It was used to limit queue just 1 TX
  frame in DM910x controllers. In r67595(more than 10 years ago) it
  was replaced to use "Store and Forward" mode and made controller
  generate TX completion interrupt for every frame.

Modified:
  head/sys/dev/dc/if_dc.c
  head/sys/dev/dc/if_dcreg.h

Modified: head/sys/dev/dc/if_dc.c
==============================================================================
--- head/sys/dev/dc/if_dc.c	Fri Feb 18 02:58:09 2011	(r218788)
+++ head/sys/dev/dc/if_dc.c	Fri Feb 18 03:37:53 2011	(r218789)
@@ -3391,11 +3391,6 @@ dc_start_locked(struct ifnet *ifp)
 		 * to him.
 		 */
 		BPF_MTAP(ifp, m_head);
-
-		if (sc->dc_flags & DC_TX_ONE) {
-			ifp->if_drv_flags |= IFF_DRV_OACTIVE;
-			break;
-		}
 	}
 
 	if (queued > 0) {

Modified: head/sys/dev/dc/if_dcreg.h
==============================================================================
--- head/sys/dev/dc/if_dcreg.h	Fri Feb 18 02:58:09 2011	(r218788)
+++ head/sys/dev/dc/if_dcreg.h	Fri Feb 18 03:37:53 2011	(r218789)
@@ -780,7 +780,6 @@ struct dc_softc {
 #define DC_128BIT_HASH		0x00001000
 #define DC_64BIT_HASH		0x00002000
 #define DC_TULIP_LEDS		0x00004000
-#define DC_TX_ONE		0x00008000
 #define DC_TX_ALIGN		0x00010000	/* align mbuf on tx */
 
 /*


More information about the svn-src-all mailing list