Changeset 41032 in vbox
- Timestamp:
- Apr 23, 2012 6:39:04 PM (13 years ago)
- svn:sync-xref-src-repo-rev:
- 77594
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DevE1000.cpp
r41030 r41032 3224 3224 DECLINLINE(unsigned) e1kTxDLoadMore(E1KSTATE* pState) 3225 3225 { 3226 unsigned nDescsToFetch = RT_MIN(e1kGetTxLen(pState), E1K_TXD_CACHE_SIZE - pState->nTxDFetched); 3226 unsigned nDescsAvailable = e1kGetTxLen(pState); 3227 unsigned nDescsToFetch = RT_MIN(nDescsAvailable, E1K_TXD_CACHE_SIZE - pState->nTxDFetched); 3228 /* 3229 * It is safe to use TDLEN and TDH in the following expression since TDLEN 3230 * is set during init and never changes after that, and TDH is advanced in 3231 * the loop we are being called from. 3232 */ 3227 3233 unsigned nDescsInSingleRead = RT_MIN(nDescsToFetch, TDLEN / sizeof(E1KTXDESC) - TDH); 3228 3234 if (nDescsToFetch == 0)
Note:
See TracChangeset
for help on using the changeset viewer.