From d06930af5281f53897cb4087be60d1244f6aefa5 Mon Sep 17 00:00:00 2001 From: Pyun YongHyeon Date: Fri, 26 Feb 2010 17:27:16 +0000 Subject: 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. --- sys/dev/msk/if_msk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/msk/if_msk.c b/sys/dev/msk/if_msk.c index 9b129bd3358c6..fc8208e4c2958 100644 --- a/sys/dev/msk/if_msk.c +++ b/sys/dev/msk/if_msk.c @@ -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 | -- cgit v1.3