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:
parent
e8df2232e0
commit
58e6549541
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user