svn commit: r268501 - head/sys/dev/e1000
Mark Johnston
markj at FreeBSD.org
Thu Jul 10 16:46:47 UTC 2014
Author: markj
Date: Thu Jul 10 16:46:46 2014
New Revision: 268501
URL: http://svnweb.freebsd.org/changeset/base/268501
Log:
Correct the setting of the VID in transmit descriptors when hardware VLAN
tagging is enabled. This was broken in r266978.
Reported by: gjb
Tested by: gjb
Modified:
head/sys/dev/e1000/if_em.c
Modified: head/sys/dev/e1000/if_em.c
==============================================================================
--- head/sys/dev/e1000/if_em.c Thu Jul 10 16:10:39 2014 (r268500)
+++ head/sys/dev/e1000/if_em.c Thu Jul 10 16:46:46 2014 (r268501)
@@ -2012,7 +2012,7 @@ retry:
if (m_head->m_flags & M_VLANTAG) {
/* Set the vlan id. */
- txd_upper |= htole16((if_getvtag(m_head)) << 16);
+ txd_upper |= htole16(if_getvtag(m_head)) << 16;
/* Tell hardware to add tag */
txd_lower |= htole32(E1000_TXD_CMD_VLE);
}
More information about the svn-src-all
mailing list