svn commit: r204361 - head/sys/dev/msk

Pyun YongHyeon yongari at FreeBSD.org
Fri Feb 26 17:27:17 UTC 2010


Author: yongari
Date: Fri Feb 26 17:27:16 2010
New Revision: 204361
URL: http://svn.freebsd.org/changeset/base/204361

Log:
  Reuse the configured LE for VLAN if new LE was created for TSO.
  Only old controllers need to create new LE for TSO. This change
  makes TSO work over VLANs.

Modified:
  head/sys/dev/msk/if_msk.c

Modified: head/sys/dev/msk/if_msk.c
==============================================================================
--- head/sys/dev/msk/if_msk.c	Fri Feb 26 16:27:11 2010	(r204360)
+++ head/sys/dev/msk/if_msk.c	Fri Feb 26 17:27:16 2010	(r204361)
@@ -2686,7 +2686,7 @@ msk_encap(struct msk_if_softc *sc_if, st
 	}
 	/* Check if we have a VLAN tag to insert. */
 	if ((m->m_flags & M_VLANTAG) != 0) {
-		if (tso == 0) {
+		if (tx_le == NULL) {
 			tx_le = &sc_if->msk_rdata.msk_tx_ring[prod];
 			tx_le->msk_addr = htole32(0);
 			tx_le->msk_control = htole32(OP_VLAN | HW_OWNER |


More information about the svn-src-all mailing list