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.
This commit is contained in:
Pyun YongHyeon 2010-02-26 17:27:16 +00:00
parent fb24fced05
commit d06930af52

@ -2686,7 +2686,7 @@ msk_encap(struct msk_if_softc *sc_if, struct mbuf **m_head)
}
/* 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 |