Changeset 23101 in vbox
- Timestamp:
- Sep 17, 2009 3:00:50 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DevPCNet.cpp
r22925 r23101 2609 2609 { 2610 2610 if (CSR_RXON(pThis)) 2611 if (HOST_IS_OWNER(CSR_CRST(pThis))) /* Only poll RDTEs if none available */ 2611 { 2612 /* 2613 * The second case is important for pcnetWaitReceiveAvail(): If CSR_CRST(pThis) was 2614 * true but pcnetCanReceive() returned false for some other reason we need to check 2615 * _now_ if we have to wakeup pcnetWaitReceiveAvail(). 2616 */ 2617 if ( HOST_IS_OWNER(CSR_CRST(pThis)) /* only poll RDTEs if none available or ... */ 2618 || pThis->fMaybeOutOfSpace) /* ... for waking up pcnetWaitReceiveAvail() */ 2612 2619 pcnetRdtePoll(pThis); 2620 } 2613 2621 2614 2622 if (CSR_TDMD(pThis) || (CSR_TXON(pThis) && !CSR_DPOLL(pThis))) … … 2664 2672 /* If the receive thread is waiting for new descriptors, poll TX/RX even if polling 2665 2673 * disabled. We wouldn't need to poll for new TX descriptors in that case but it will 2666 * not hurt as waiting for RX descriptors should occurvery seldom */2674 * not hurt as waiting for RX descriptors should happen very seldom */ 2667 2675 if (RT_LIKELY( !CSR_STOP(pThis) 2668 2676 && !CSR_SPND(pThis)
Note:
See TracChangeset
for help on using the changeset viewer.