Changeset 93564 in vbox for trunk/src/VBox/Devices/Network
- Timestamp:
- Feb 3, 2022 7:31:00 AM (3 years ago)
- Location:
- trunk/src/VBox/Devices/Network
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/Dev3C501.cpp
r93563 r93564 937 937 } 938 938 return rc; 939 }940 941 942 /**943 * Frees an unsent buffer.944 *945 * @param pThis The device instance.946 * @param fLoopback Set if we're in loopback mode.947 * @param pSgBuf The SG to free. Can be NULL.948 */949 DECLINLINE(void) elnkXmitFreeBuf(PELNKSTATE pThis, bool fLoopback, PPDMSCATTERGATHER pSgBuf)950 {951 if (pSgBuf)952 {953 if (RT_UNLIKELY(fLoopback))954 pSgBuf->pvAllocator = NULL;955 else956 {957 PPDMINETWORKUP pDrv = pThis->CTX_SUFF(pDrv);958 if (RT_LIKELY(pDrv))959 pDrv->pfnFreeBuf(pDrv, pSgBuf);960 }961 }962 939 } 963 940 -
trunk/src/VBox/Devices/Network/DevDP8390.cpp
r93562 r93564 1757 1757 1758 1758 /** 1759 * Frees an unsent buffer.1760 *1761 * @param pThis The device instance.1762 * @param fLoopback Set if we're in loopback mode.1763 * @param pSgBuf The SG to free. Can be NULL.1764 */1765 DECLINLINE(void) dp8390XmitFreeBuf(PDPNICSTATE pThis, bool fLoopback, PPDMSCATTERGATHER pSgBuf)1766 {1767 if (pSgBuf)1768 {1769 if (RT_UNLIKELY(fLoopback))1770 pSgBuf->pvAllocator = NULL;1771 else1772 {1773 PPDMINETWORKUP pDrv = pThis->CTX_SUFF(pDrv);1774 if (RT_LIKELY(pDrv))1775 pDrv->pfnFreeBuf(pDrv, pSgBuf);1776 }1777 }1778 }1779 1780 1781 /**1782 1759 * Sends the scatter/gather buffer. 1783 1760 *
Note:
See TracChangeset
for help on using the changeset viewer.