mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-22 15:47:37 +00:00
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:
parent
fb24fced05
commit
d06930af52
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=204361
@ -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 |
|
||||
|
Loading…
Reference in New Issue
Block a user