Changeset 71190 in vbox for trunk/src/VBox/Devices/Network
- Timestamp:
- Mar 5, 2018 7:45:55 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DevE1000.cpp
r71098 r71190 5006 5006 { 5007 5007 pThis->contextTSE.dw3.u16MSS = E1K_MAX_TX_PKT_SIZE - pThis->contextTSE.dw3.u8HDRLEN - 4; /*VTAG*/ 5008 LogRelMax(10, ("%s Transmit packet is too large: %u > %u(max). Adjusted MSS to %u.\n",5008 LogRelMax(10, ("%s: Transmit packet is too large: %u > %u(max). Adjusted MSS to %u.\n", 5009 5009 pThis->szPrf, cbMaxSegmentSize, E1K_MAX_TX_PKT_SIZE, pThis->contextTSE.dw3.u16MSS)); 5010 5010 } … … 5242 5242 unsigned i, cDescs = TDLEN / sizeof(E1KTXDESC); 5243 5243 uint32_t tdh = TDH; 5244 LogRel((" -- Transmit Descriptors (%d total) --\n", cDescs));5244 LogRel(("E1000: -- Transmit Descriptors (%d total) --\n", cDescs)); 5245 5245 for (i = 0; i < cDescs; ++i) 5246 5246 { … … 5249 5249 &desc, sizeof(desc)); 5250 5250 if (i == tdh) 5251 LogRel((" >>> "));5252 LogRel((" %RGp: %R[e1ktxd]\n", e1kDescAddr(TDBAH, TDBAL, i), &desc));5253 } 5254 LogRel((" -- Transmit Descriptors in Cache (at %d (TDH %d)/ fetched %d / max %d) --\n",5251 LogRel(("E1000: >>> ")); 5252 LogRel(("E1000: %RGp: %R[e1ktxd]\n", e1kDescAddr(TDBAH, TDBAL, i), &desc)); 5253 } 5254 LogRel(("E1000: -- Transmit Descriptors in Cache (at %d (TDH %d)/ fetched %d / max %d) --\n", 5255 5255 pThis->iTxDCurrent, TDH, pThis->nTxDFetched, E1K_TXD_CACHE_SIZE)); 5256 5256 if (tdh > pThis->iTxDCurrent) … … 5261 5261 { 5262 5262 if (i == pThis->iTxDCurrent) 5263 LogRel((" >>> "));5264 LogRel((" %RGp: %R[e1ktxd]\n", e1kDescAddr(TDBAH, TDBAL, tdh++ % cDescs), &pThis->aTxDescriptors[i]));5263 LogRel(("E1000: >>> ")); 5264 LogRel(("E1000: %RGp: %R[e1ktxd]\n", e1kDescAddr(TDBAH, TDBAL, tdh++ % cDescs), &pThis->aTxDescriptors[i])); 5265 5265 } 5266 5266 } … … 5332 5332 * the guest driver can recover from network card error. 5333 5333 */ 5334 LogRel(("%s No complete packets in%s TxD cache! "5334 LogRel(("%s: No complete packets in%s TxD cache! " 5335 5335 "Fetched=%d, current=%d, TX len=%d.\n", 5336 5336 pThis->szPrf, … … 6140 6140 RT_NOREF(pThis); 6141 6141 for (int i = 0; i < E1K_NUM_OF_32BIT_REGS; ++i) 6142 E1kLog2(("%s %8.8s = %08x\n", pThis->szPrf, g_aE1kRegMap[i].abbrev, pThis->auRegs[i]));6142 E1kLog2(("%s: %8.8s = %08x\n", pThis->szPrf, g_aE1kRegMap[i].abbrev, pThis->auRegs[i])); 6143 6143 # ifdef E1K_INT_STATS 6144 LogRel(("%s Interrupt attempts: %d\n", pThis->szPrf, pThis->uStatIntTry));6145 LogRel(("%s Interrupts raised : %d\n", pThis->szPrf, pThis->uStatInt));6146 LogRel(("%s Interrupts lowered: %d\n", pThis->szPrf, pThis->uStatIntLower));6147 LogRel(("%s ICR outside ISR : %d\n", pThis->szPrf, pThis->uStatNoIntICR));6148 LogRel(("%s IMS raised ints : %d\n", pThis->szPrf, pThis->uStatIntIMS));6149 LogRel(("%s Interrupts skipped: %d\n", pThis->szPrf, pThis->uStatIntSkip));6150 LogRel(("%s Masked interrupts : %d\n", pThis->szPrf, pThis->uStatIntMasked));6151 LogRel(("%s Early interrupts : %d\n", pThis->szPrf, pThis->uStatIntEarly));6152 LogRel(("%s Late interrupts : %d\n", pThis->szPrf, pThis->uStatIntLate));6153 LogRel(("%s Lost interrupts : %d\n", pThis->szPrf, pThis->iStatIntLost));6154 LogRel(("%s Interrupts by RX : %d\n", pThis->szPrf, pThis->uStatIntRx));6155 LogRel(("%s Interrupts by TX : %d\n", pThis->szPrf, pThis->uStatIntTx));6156 LogRel(("%s Interrupts by ICS : %d\n", pThis->szPrf, pThis->uStatIntICS));6157 LogRel(("%s Interrupts by RDTR: %d\n", pThis->szPrf, pThis->uStatIntRDTR));6158 LogRel(("%s Interrupts by RDMT: %d\n", pThis->szPrf, pThis->uStatIntRXDMT0));6159 LogRel(("%s Interrupts by TXQE: %d\n", pThis->szPrf, pThis->uStatIntTXQE));6160 LogRel(("%s TX int delay asked: %d\n", pThis->szPrf, pThis->uStatTxIDE));6161 LogRel(("%s TX delayed: %d\n", pThis->szPrf, pThis->uStatTxDelayed));6162 LogRel(("%s TX delay expired: %d\n", pThis->szPrf, pThis->uStatTxDelayExp));6163 LogRel(("%s TX no report asked: %d\n", pThis->szPrf, pThis->uStatTxNoRS));6164 LogRel(("%s TX abs timer expd : %d\n", pThis->szPrf, pThis->uStatTAD));6165 LogRel(("%s TX int timer expd : %d\n", pThis->szPrf, pThis->uStatTID));6166 LogRel(("%s RX abs timer expd : %d\n", pThis->szPrf, pThis->uStatRAD));6167 LogRel(("%s RX int timer expd : %d\n", pThis->szPrf, pThis->uStatRID));6168 LogRel(("%s TX CTX descriptors: %d\n", pThis->szPrf, pThis->uStatDescCtx));6169 LogRel(("%s TX DAT descriptors: %d\n", pThis->szPrf, pThis->uStatDescDat));6170 LogRel(("%s TX LEG descriptors: %d\n", pThis->szPrf, pThis->uStatDescLeg));6171 LogRel(("%s Received frames : %d\n", pThis->szPrf, pThis->uStatRxFrm));6172 LogRel(("%s Transmitted frames: %d\n", pThis->szPrf, pThis->uStatTxFrm));6173 LogRel(("%s TX frames up to 1514: %d\n", pThis->szPrf, pThis->uStatTx1514));6174 LogRel(("%s TX frames up to 2962: %d\n", pThis->szPrf, pThis->uStatTx2962));6175 LogRel(("%s TX frames up to 4410: %d\n", pThis->szPrf, pThis->uStatTx4410));6176 LogRel(("%s TX frames up to 5858: %d\n", pThis->szPrf, pThis->uStatTx5858));6177 LogRel(("%s TX frames up to 7306: %d\n", pThis->szPrf, pThis->uStatTx7306));6178 LogRel(("%s TX frames up to 8754: %d\n", pThis->szPrf, pThis->uStatTx8754));6179 LogRel(("%s TX frames up to 16384: %d\n", pThis->szPrf, pThis->uStatTx16384));6180 LogRel(("%s TX frames up to 32768: %d\n", pThis->szPrf, pThis->uStatTx32768));6181 LogRel(("%s Larger TX frames : %d\n", pThis->szPrf, pThis->uStatTxLarge));6182 LogRel(("%s Max TX Delay : %lld\n", pThis->szPrf, pThis->uStatMaxTxDelay));6144 LogRel(("%s: Interrupt attempts: %d\n", pThis->szPrf, pThis->uStatIntTry)); 6145 LogRel(("%s: Interrupts raised : %d\n", pThis->szPrf, pThis->uStatInt)); 6146 LogRel(("%s: Interrupts lowered: %d\n", pThis->szPrf, pThis->uStatIntLower)); 6147 LogRel(("%s: ICR outside ISR : %d\n", pThis->szPrf, pThis->uStatNoIntICR)); 6148 LogRel(("%s: IMS raised ints : %d\n", pThis->szPrf, pThis->uStatIntIMS)); 6149 LogRel(("%s: Interrupts skipped: %d\n", pThis->szPrf, pThis->uStatIntSkip)); 6150 LogRel(("%s: Masked interrupts : %d\n", pThis->szPrf, pThis->uStatIntMasked)); 6151 LogRel(("%s: Early interrupts : %d\n", pThis->szPrf, pThis->uStatIntEarly)); 6152 LogRel(("%s: Late interrupts : %d\n", pThis->szPrf, pThis->uStatIntLate)); 6153 LogRel(("%s: Lost interrupts : %d\n", pThis->szPrf, pThis->iStatIntLost)); 6154 LogRel(("%s: Interrupts by RX : %d\n", pThis->szPrf, pThis->uStatIntRx)); 6155 LogRel(("%s: Interrupts by TX : %d\n", pThis->szPrf, pThis->uStatIntTx)); 6156 LogRel(("%s: Interrupts by ICS : %d\n", pThis->szPrf, pThis->uStatIntICS)); 6157 LogRel(("%s: Interrupts by RDTR: %d\n", pThis->szPrf, pThis->uStatIntRDTR)); 6158 LogRel(("%s: Interrupts by RDMT: %d\n", pThis->szPrf, pThis->uStatIntRXDMT0)); 6159 LogRel(("%s: Interrupts by TXQE: %d\n", pThis->szPrf, pThis->uStatIntTXQE)); 6160 LogRel(("%s: TX int delay asked: %d\n", pThis->szPrf, pThis->uStatTxIDE)); 6161 LogRel(("%s: TX delayed: %d\n", pThis->szPrf, pThis->uStatTxDelayed)); 6162 LogRel(("%s: TX delay expired: %d\n", pThis->szPrf, pThis->uStatTxDelayExp)); 6163 LogRel(("%s: TX no report asked: %d\n", pThis->szPrf, pThis->uStatTxNoRS)); 6164 LogRel(("%s: TX abs timer expd : %d\n", pThis->szPrf, pThis->uStatTAD)); 6165 LogRel(("%s: TX int timer expd : %d\n", pThis->szPrf, pThis->uStatTID)); 6166 LogRel(("%s: RX abs timer expd : %d\n", pThis->szPrf, pThis->uStatRAD)); 6167 LogRel(("%s: RX int timer expd : %d\n", pThis->szPrf, pThis->uStatRID)); 6168 LogRel(("%s: TX CTX descriptors: %d\n", pThis->szPrf, pThis->uStatDescCtx)); 6169 LogRel(("%s: TX DAT descriptors: %d\n", pThis->szPrf, pThis->uStatDescDat)); 6170 LogRel(("%s: TX LEG descriptors: %d\n", pThis->szPrf, pThis->uStatDescLeg)); 6171 LogRel(("%s: Received frames : %d\n", pThis->szPrf, pThis->uStatRxFrm)); 6172 LogRel(("%s: Transmitted frames: %d\n", pThis->szPrf, pThis->uStatTxFrm)); 6173 LogRel(("%s: TX frames up to 1514: %d\n", pThis->szPrf, pThis->uStatTx1514)); 6174 LogRel(("%s: TX frames up to 2962: %d\n", pThis->szPrf, pThis->uStatTx2962)); 6175 LogRel(("%s: TX frames up to 4410: %d\n", pThis->szPrf, pThis->uStatTx4410)); 6176 LogRel(("%s: TX frames up to 5858: %d\n", pThis->szPrf, pThis->uStatTx5858)); 6177 LogRel(("%s: TX frames up to 7306: %d\n", pThis->szPrf, pThis->uStatTx7306)); 6178 LogRel(("%s: TX frames up to 8754: %d\n", pThis->szPrf, pThis->uStatTx8754)); 6179 LogRel(("%s: TX frames up to 16384: %d\n", pThis->szPrf, pThis->uStatTx16384)); 6180 LogRel(("%s: TX frames up to 32768: %d\n", pThis->szPrf, pThis->uStatTx32768)); 6181 LogRel(("%s: Larger TX frames : %d\n", pThis->szPrf, pThis->uStatTxLarge)); 6182 LogRel(("%s: Max TX Delay : %lld\n", pThis->szPrf, pThis->uStatMaxTxDelay)); 6183 6183 # endif /* E1K_INT_STATS */ 6184 6184 } … … 6345 6345 break; 6346 6346 } 6347 E1kLogRel(("E1000 e1kR3NetworkDown_WaitReceiveAvail: waiting cMillies=%u...\n", cMillies));6348 E1kLog(("%s e1kR3NetworkDown_WaitReceiveAvail: waiting cMillies=%u...\n", pThis->szPrf, cMillies));6347 E1kLogRel(("E1000: e1kR3NetworkDown_WaitReceiveAvail: waiting cMillies=%u...\n", cMillies)); 6348 E1kLog(("%s: e1kR3NetworkDown_WaitReceiveAvail: waiting cMillies=%u...\n", pThis->szPrf, cMillies)); 6349 6349 RTSemEventWait(pThis->hEventMoreRxDescAvail, cMillies); 6350 6350 } … … 7693 7693 Assert(pThis->cMsLinkUpDelay <= 300000); /* less than 5 minutes */ 7694 7694 if (pThis->cMsLinkUpDelay > 5000) 7695 LogRel(("%s WARNING! Link up delay is set to %u seconds!\n", pThis->szPrf, pThis->cMsLinkUpDelay / 1000));7695 LogRel(("%s: WARNING! Link up delay is set to %u seconds!\n", pThis->szPrf, pThis->cMsLinkUpDelay / 1000)); 7696 7696 else if (pThis->cMsLinkUpDelay == 0) 7697 LogRel(("%s WARNING! Link up delay is disabled!\n", pThis->szPrf));7698 7699 LogRel(("%s Chip=%s LinkUpDelay=%ums EthernetCRC=%s GSO=%s Itr=%s ItrRx=%s TID=%s R0=%s GC=%s\n", pThis->szPrf,7697 LogRel(("%s: WARNING! Link up delay is disabled!\n", pThis->szPrf)); 7698 7699 LogRel(("%s: Chip=%s LinkUpDelay=%ums EthernetCRC=%s GSO=%s Itr=%s ItrRx=%s TID=%s R0=%s GC=%s\n", pThis->szPrf, 7700 7700 g_aChips[pThis->eChip].pcszName, pThis->cMsLinkUpDelay, 7701 7701 pThis->fEthernetCRC ? "on" : "off",
Note:
See TracChangeset
for help on using the changeset viewer.