~ubuntu-branches/ubuntu/vivid/virtualbox-ose/vivid

« back to all changes in this revision

Viewing changes to src/VBox/Devices/Network/DevPCNet.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Felix Geyer
  • Date: 2009-10-13 23:06:00 UTC
  • mfrom: (0.3.2 upstream) (0.1.12 sid)
  • Revision ID: james.westby@ubuntu.com-20091013230600-xhu2pwizq0wo63l9
Tags: 3.0.8-dfsg-1ubuntu1
* Merge from debian unstable (LP: #444812), remaining changes:
  - Enable DKMS support on virtualbox host and guest modules (LP: #267097)
    - Drop virtualbox-ose{-guest,}-modules-* package templates
    - Recommend *-source instead of *-modules packages
    - Replace error messages related to missing/mismatched
      kernel module accordingly
  - Autoload kernel module
    - LOAD_VBOXDRV_MODULE=1 in virtualbox-ose.default
  - Disable update action
    - patches/u01-disable-update-action.dpatch
  - Virtualbox should go in Accessories, not in System tools (LP: #288590)
    - virtualbox-ose-qt.files/virtualbox-ose.desktop
  - Add apport hook
    - virtualbox-ose.files/source_virtualbox-ose.py
    - virtualbox-ose.install
  - Add launchpad integration
    - control
    - lpi-bug.xpm
    - patches/u02-lp-integration.dpatch
* Try to remove existing dkms modules before adding the new modules
  (LP: #434503)
  - debian/virtualbox-ose-source.postinst
  - debian/virtualbox-ose-guest-source.postinst
* Don't fail if dkms modules have already been removed
  - debian/virtualbox-ose-source.prerm
  - debian/virtualbox-ose-guest-source.prerm

Show diffs side-by-side

added added

removed removed

Lines of Context:
2600
2600
static void pcnetPollRxTx(PCNetState *pThis)
2601
2601
{
2602
2602
    if (CSR_RXON(pThis))
2603
 
        if (HOST_IS_OWNER(CSR_CRST(pThis)))     /* Only poll RDTEs if none available */
 
2603
    {
 
2604
        /*
 
2605
         * The second case is important for pcnetWaitReceiveAvail(): If CSR_CRST(pThis) was
 
2606
         * true but pcnetCanReceive() returned false for some other reason we need to check
 
2607
         * _now_ if we have to wakeup pcnetWaitReceiveAvail().
 
2608
         */
 
2609
        if (   HOST_IS_OWNER(CSR_CRST(pThis))  /* only poll RDTEs if none available or ... */
 
2610
            || pThis->fMaybeOutOfSpace)        /* ... for waking up pcnetWaitReceiveAvail() */
2604
2611
            pcnetRdtePoll(pThis);
 
2612
    }
2605
2613
 
2606
2614
    if (CSR_TDMD(pThis) || (CSR_TXON(pThis) && !CSR_DPOLL(pThis)))
2607
2615
        pcnetTransmit(pThis);
2655
2663
 
2656
2664
    /* If the receive thread is waiting for new descriptors, poll TX/RX even if polling
2657
2665
     * disabled. We wouldn't need to poll for new TX descriptors in that case but it will
2658
 
     * not hurt as waiting for RX descriptors should occur very seldom */
 
2666
     * not hurt as waiting for RX descriptors should happen very seldom */
2659
2667
    if (RT_LIKELY(   !CSR_STOP(pThis)
2660
2668
                  && !CSR_SPND(pThis)
2661
2669
                  && (   !CSR_DPOLL(pThis)