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
This commit is contained in:
Mark Johnston 2014-07-10 16:46:46 +00:00
parent e8df2232e0
commit 58e6549541
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=268501

View File

@ -2012,7 +2012,7 @@ em_xmit(struct tx_ring *txr, struct mbuf **m_headp)
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);
}