VirtualBox

Changeset 499 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Feb 1, 2007 10:20:43 AM (18 years ago)
Author:
vboxsync
Message:

Queue depth of 8 is too much. 4 yields better results.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/DevPCNet.cpp

    r498 r499  
    109109#define PCNET_PNPMMIO_SIZE              0x20
    110110
    111 #define PCNET_SAVEDSTATE_VERSION        4
     111#define PCNET_SAVEDSTATE_VERSION        5
    112112
    113113#define BCR_MAX_RAP                     50
    114114#define MII_MAX_REG                     32
    115115#define CSR_MAX_REG                     128
     116
     117#define PCNET_TRQUEUE_DEPTH             4
    116118
    117119typedef struct PCNetState_st PCNetState;
     
    155157         *  Set to NIL_RTR3PTR if frame was copied to abFrameBuf. */
    156158        RTR3PTR  pvR3;
    157     } aFrames[8];
     159    } aFrames[PCNET_TRQUEUE_DEPTH];
    158160    /** The current number of frames in aFrames to transmit. */
    159161    uint32_t                            iFrame;
     
    252254    STAMPROFILE                         StatXmitQueue;
    253255    STAMPROFILEADV                      StatXmitQueueFlushGC;
    254     STAMCOUNTER                         aStatFlushCounts[9];
    255     STAMCOUNTER                         aStatXmitChainCounts[8];
     256    STAMCOUNTER                         aStatFlushCounts[PCNET_TRQUEUE_DEPTH+1];
     257    STAMCOUNTER                         aStatXmitChainCounts[PCNET_TRQUEUE_DEPTH];
    256258    STAMPROFILEADV                      StatInterrupt;
    257259    STAMPROFILEADV                      StatPollTimer;
     
    38643866    Assert(RT_ELEMENTS(pData->aMII) == MII_MAX_REG);
    38653867    Assert(sizeof(pData->abFrameBuf) == RT_ALIGN_Z(sizeof(pData->abFrameBuf), 16));
     3868    Assert(PCNET_TRQUEUE_DEPTH*1536 <= sizeof(pData->abFrameBuf));
    38663869
    38673870    /*
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette