Changeset 82685 in vbox
- Timestamp:
- Jan 9, 2020 10:05:26 AM (5 years ago)
- File:
-
- 1 edited
-
trunk/src/VBox/Devices/Network/DevE1000.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DevE1000.cpp
r82368 r82685 3849 3849 return VINF_SUCCESS; 3850 3850 } 3851 if (fGso && pThis->GsoCtx.u8Type == PDMNETWORKGSOTYPE_INVALID) 3852 { 3853 E1kLog3(("Invalid GSO context, won't allocate this packet, cb=%u %s%s\n", 3854 pThis->cbTxAlloc, pThis->fVTag ? "VLAN " : "", pThis->fGSO ? "GSO " : "")); 3855 /* No valid GSO context is available, ignore this packet. */ 3856 pThis->cbTxAlloc = 0; 3857 return VINF_SUCCESS; 3858 } 3851 3859 3852 3860 PPDMINETWORKUP pDrv = pThisCC->CTX_SUFF(pDrv); … … 4422 4430 pThis->cbTxAlloc = RT_MIN(pThis->u32PayRemain, 4423 4431 pThis->contextTSE.dw3.u16MSS) 4424 + pThis->contextTSE.dw3.u8HDRLEN 4425 + (pThis->fVTag ? 4 : 0); 4432 + pThis->contextTSE.dw3.u8HDRLEN; 4433 /* Do not add VLAN tags to empty packets. */ 4434 if (pThis->fVTag && pThis->cbTxAlloc > 0) 4435 pThis->cbTxAlloc += 4; 4426 4436 rc = e1kXmitAllocBuf(pThis, pThisCC, false /* fGSO */); 4427 4437 } … … 5276 5286 cbPacket : 5277 5287 RT_MIN(cbPacket, pThis->contextTSE.dw3.u16MSS + pThis->contextTSE.dw3.u8HDRLEN); 5278 if (pThis->fVTag) 5288 /* Do not add VLAN tags to empty packets. */ 5289 if (pThis->fVTag && pThis->cbTxAlloc > 0) 5279 5290 pThis->cbTxAlloc += 4; 5280 5291 LogFlow(("%s e1kLocateTxPacket: RET true cbTxAlloc=%d cbPacket=%d%s%s\n",
Note:
See TracChangeset
for help on using the changeset viewer.

