VirtualBox

Changeset 20718 in vbox for trunk/src/VBox/Devices/Network


Ignore:
Timestamp:
Jun 19, 2009 12:05:50 PM (16 years ago)
Author:
vboxsync
Message:

DrvNAT: r=bird: Why reset the queue counters for every item?!

File:
1 edited

Legend:

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

    r20716 r20718  
    493493    Log2(("slirp_output: pu8Buf=%p cb=%#x (pThis=%p)\n%.*Rhxd\n", pu8Buf, cb, pThis, cb, pu8Buf));
    494494
    495     STAM_COUNTER_RESET(&pThis->StatQueuePktDropped);
    496     STAM_COUNTER_RESET(&pThis->StatQueuePktSent);
     495    /** @todo r-bird: Why do you reset the counters every time? You won't ever count
     496     *        higher than ONE then. If you want to record what happened to the last
     497     *        queued item, use a U8/bool instead to two 64-bit values. */
     498    //STAM_COUNTER_RESET(&pThis->StatQueuePktDropped);
     499    //STAM_COUNTER_RESET(&pThis->StatQueuePktSent);
    497500    Assert(pThis);
    498501
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