Changeset 63218 in vbox for trunk/src/VBox/Devices/Network
- Timestamp:
- Aug 9, 2016 3:52:35 PM (8 years ago)
- Location:
- trunk/src/VBox/Devices/Network
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DevE1000.cpp
r62962 r63218 2136 2136 } 2137 2137 2138 # ifdef IN_RING3 /* currently only used in ring-3 due to stack space requirements of the caller */ 2138 2139 /** 2139 2140 * Store a fragment of received packet at the specifed address. … … 2153 2154 STAM_PROFILE_ADV_STOP(&pThis->StatReceiveStore, a); 2154 2155 } 2156 # endif 2155 2157 2156 2158 #else /* !E1K_WITH_RXD_CACHE */ … … 2230 2232 } 2231 2233 2234 #ifdef IN_RING3 /* currently only used in ring-3 due to stack space requirements of the caller */ 2232 2235 /** 2233 2236 * Set IXSM, IPCS and TCPCS flags according to the packet type. … … 2249 2252 * and do verification in software. 2250 2253 */ 2251 # if 02254 # if 0 2252 2255 uint16_t uEtherType = ntohs(*(uint16_t*)(pFrame + 12)); 2253 2256 … … 2274 2277 break; 2275 2278 } 2276 # else2279 # else 2277 2280 pStatus->fIXSM = true; 2278 2281 RT_NOREF_PV(pThis); RT_NOREF_PV(pFrame); RT_NOREF_PV(cb); 2279 # endif2282 # endif 2280 2283 return VINF_SUCCESS; 2281 2284 } 2285 #endif /* IN_RING3 */ 2282 2286 2283 2287 /** -
trunk/src/VBox/Devices/Network/DevPCNet.cpp
r62902 r63218 2015 2015 2016 2016 2017 #ifdef IN_RING3 2017 2018 /** 2018 2019 * Transmit queue consumer … … 2036 2037 return true; 2037 2038 } 2039 #endif /* IN_RING3 */ 2038 2040 2039 2041 -
trunk/src/VBox/Devices/Network/DrvTAP.cpp
r62511 r63218 151 151 static DECLCALLBACK(int) drvTAPNetworkUp_BeginXmit(PPDMINETWORKUP pInterface, bool fOnWorkerThread) 152 152 { 153 RT_NOREF(fOnWorkerThread); 153 154 PDRVTAP pThis = PDMINETWORKUP_2_DRVTAP(pInterface); 154 155 int rc = RTCritSectTryEnter(&pThis->XmitLock); … … 230 231 static DECLCALLBACK(int) drvTAPNetworkUp_SendBuf(PPDMINETWORKUP pInterface, PPDMSCATTERGATHER pSgBuf, bool fOnWorkerThread) 231 232 { 233 RT_NOREF(fOnWorkerThread); 232 234 PDRVTAP pThis = PDMINETWORKUP_2_DRVTAP(pInterface); 233 235 STAM_COUNTER_INC(&pThis->StatPktSent); … … 301 303 static DECLCALLBACK(void) drvTAPNetworkUp_SetPromiscuousMode(PPDMINETWORKUP pInterface, bool fPromiscuous) 302 304 { 305 RT_NOREF(pInterface, fPromiscuous); 303 306 LogFlow(("drvTAPNetworkUp_SetPromiscuousMode: fPromiscuous=%d\n", fPromiscuous)); 304 307 /* nothing to do */ … … 315 318 static DECLCALLBACK(void) drvTAPNetworkUp_NotifyLinkChanged(PPDMINETWORKUP pInterface, PDMNETWORKLINKSTATE enmLinkState) 316 319 { 320 RT_NOREF(pInterface, enmLinkState); 317 321 LogFlow(("drvTAPNetworkUp_NotifyLinkChanged: enmLinkState=%d\n", enmLinkState)); 318 322 /** @todo take action on link down and up. Stop the polling and such like. */ … … 467 471 static DECLCALLBACK(int) drvTapAsyncIoWakeup(PPDMDRVINS pDrvIns, PPDMTHREAD pThread) 468 472 { 473 RT_NOREF(pThread); 469 474 PDRVTAP pThis = PDMINS_2_DATA(pDrvIns, PDRVTAP); 470 475 … … 843 848 static DECLCALLBACK(int) drvTAPConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags) 844 849 { 850 RT_NOREF(fFlags); 851 PDMDRV_CHECK_VERSIONS_RETURN(pDrvIns); 845 852 PDRVTAP pThis = PDMINS_2_DATA(pDrvIns, PDRVTAP); 846 PDMDRV_CHECK_VERSIONS_RETURN(pDrvIns);847 853 848 854 /*
Note:
See TracChangeset
for help on using the changeset viewer.