Changeset 40799 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Apr 6, 2012 4:52:54 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DevE1000.cpp
r40794 r40799 2027 2027 Assert(cb <= E1K_MAX_RX_PKT_SIZE); 2028 2028 Assert(cb > 16); 2029 size_t cbMax = ((RCTL & RCTL_LPE) ? E1K_MAX_RX_PKT_SIZE - 4 : 1518) - (status.fVP ? 0 : 4); 2030 E1kLog3(("%s Max RX packet size is %u\n", INSTANCE(pState), cbMax)); 2029 2031 if (status.fVP) 2030 2032 { … … 2051 2053 cb = 60; 2052 2054 } 2053 if (!(RCTL & RCTL_SECRC) )2055 if (!(RCTL & RCTL_SECRC) && cb <= cbMax) 2054 2056 { 2055 2057 STAM_PROFILE_ADV_START(&pState->StatReceiveCRC, a); … … 2063 2065 cb += sizeof(uint32_t); 2064 2066 STAM_PROFILE_ADV_STOP(&pState->StatReceiveCRC, a); 2067 E1kLog3(("%s Added FCS (cb=%u)\n", INSTANCE(pState), cb)); 2065 2068 } 2066 2069 /* Compute checksum of complete packet */
Note:
See TracChangeset
for help on using the changeset viewer.