Changeset 23578 in vbox
- Timestamp:
- Oct 6, 2009 9:22:37 AM (15 years ago)
- File:
-
- 1 edited
-
trunk/src/VBox/Devices/Network/DevVirtioNet.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DevVirtioNet.cpp
r23498 r23578 757 757 } 758 758 return rc; 759 } 760 761 /** 762 * Turns on/off the write status LED. 763 * 764 * @returns VBox status code. 765 * @param pState Pointer to the device state structure. 766 * @param fOn New LED state. 767 */ 768 void vpciSetWriteLed(PVPCISTATE pState, bool fOn) 769 { 770 LogFlow(("%s vpciSetWriteLed: %s\n", INSTANCE(pState), fOn?"on":"off")); 771 if (fOn) 772 pState->led.Asserted.s.fWriting = pState->led.Actual.s.fWriting = 1; 773 else 774 pState->led.Actual.s.fWriting = fOn; 775 } 776 777 /** 778 * Turns on/off the read status LED. 779 * 780 * @returns VBox status code. 781 * @param pState Pointer to the device state structure. 782 * @param fOn New LED state. 783 */ 784 void vpciSetReadLed(PVPCISTATE pState, bool fOn) 785 { 786 LogFlow(("%s vpciSetReadLed: %s\n", INSTANCE(pState), fOn?"on":"off")); 787 if (fOn) 788 pState->led.Asserted.s.fReading = pState->led.Actual.s.fReading = 1; 789 else 790 pState->led.Actual.s.fReading = fOn; 759 791 } 760 792 … … 1356 1388 return rc; 1357 1389 1390 vpciSetReadLed(&pState->VPCI, true); 1358 1391 if (vnetAddressFilter(pState, pvBuf, cb)) 1392 { 1359 1393 rc = vnetHandleRxPacket(pState, pvBuf, cb); 1394 } 1395 vpciSetReadLed(&pState->VPCI, false); 1360 1396 1361 1397 return rc; … … 1442 1478 return; 1443 1479 } 1480 1481 vpciSetWriteLed(&pState->VPCI, true); 1444 1482 1445 1483 VQUEUEELEM elem; … … 1486 1524 vqueueSync(&pState->VPCI, pQueue); 1487 1525 } 1526 vpciSetWriteLed(&pState->VPCI, false); 1488 1527 } 1489 1528
Note:
See TracChangeset
for help on using the changeset viewer.

