VirtualBox

Changeset 40652 in vbox for trunk/include


Ignore:
Timestamp:
Mar 26, 2012 4:36:16 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
77084
Message:

NetShaper,E1000: Basic framework and partial implementation for network shaper

Location:
trunk/include/VBox
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/log.h

    r40383 r40652  
    260260    /** The common network service group */
    261261    LOG_GROUP_NET_SERVICE,
     262    /** Network traffic shaper driver group. */
     263    LOG_GROUP_NET_SHAPER,
    262264    /** PATM group. */
    263265    LOG_GROUP_PATM,
     
    491493    "NET_FLT_DRV",  \
    492494    "NET_SERVICE",  \
     495    "NET_SHAPER",   \
    493496    "PATM",         \
    494497    "PDM",          \
  • trunk/include/VBox/vmm/mm.h

    r39078 r40652  
    101101    MM_TAG_PDM_USB_USER,
    102102    MM_TAG_PDM_LUN,
     103#ifdef VBOX_WITH_NETSHAPER
     104    MM_TAG_PDM_NET_SHAPER,
     105#endif /* VBOX_WITH_NETSHAPER */
    103106    MM_TAG_PDM_QUEUE,
    104107    MM_TAG_PDM_THREAD,
  • trunk/include/VBox/vmm/pdmdrv.h

    r40416 r40652  
    3434#include <VBox/vmm/pdmcommon.h>
    3535#include <VBox/vmm/pdmasynccompletion.h>
     36#ifdef VBOX_WITH_NETSHAPER
     37#include <VBox/vmm/pdmnetshaper.h>
     38#endif /* VBOX_WITH_NETSHAPER */
    3639#include <VBox/vmm/pdmblkcache.h>
    3740#include <VBox/vmm/tm.h>
     
    11651168                                                                const char *pszDesc));
    11661169
     1170#ifdef VBOX_WITH_NETSHAPER
     1171    /**
     1172     * Attaches network filter driver to a bandwidth group.
     1173     *
     1174     * @returns VBox status code.
     1175     * @param   pDrvIns         The driver instance.
     1176     * @param   pcszBwGroup     Name of the bandwidth group to attach to.
     1177     * @param   pFilter         Pointer to the filter we attach.
     1178     */
     1179    DECLR3CALLBACKMEMBER(int, pfnNetShaperAttach,(PPDMDRVINS pDrvIns, const char *pszBwGroup,
     1180                                                  PPDMNSFILTER pFilter));
     1181
     1182
     1183    /**
     1184     * Detaches network filter driver to a bandwidth group.
     1185     *
     1186     * @returns VBox status code.
     1187     * @param   pDrvIns         The driver instance.
     1188     * @param   pFilter         Pointer to the filter we attach.
     1189     */
     1190    DECLR3CALLBACKMEMBER(int, pfnNetShaperDetach,(PPDMDRVINS pDrvIns, PPDMNSFILTER pFilter));
     1191#endif /* VBOX_WITH_NETSHAPER */
     1192
    11671193
    11681194    /**
     
    17041730# endif
    17051731
     1732# ifdef VBOX_WITH_NETSHAPER
     1733/**
     1734 * @copydoc PDMDRVHLP::pfnNetShaperAttach
     1735 */
     1736DECLINLINE(int) PDMDrvHlpNetShaperAttach(PPDMDRVINS pDrvIns, const char *pcszBwGroup, PPDMNSFILTER pFilter)
     1737{
     1738    return pDrvIns->pHlpR3->pfnNetShaperAttach(pDrvIns, pcszBwGroup, pFilter);
     1739}
     1740
     1741/**
     1742 * @copydoc PDMDRVHLP::pfnNetShaperDetach
     1743 */
     1744DECLINLINE(int) PDMDrvHlpNetShaperDetach(PPDMDRVINS pDrvIns, PPDMNSFILTER pFilter)
     1745{
     1746    return pDrvIns->pHlpR3->pfnNetShaperDetach(pDrvIns, pFilter);
     1747}
     1748# endif
     1749
    17061750/**
    17071751 * @copydoc PDMDRVHLP::pfnCritSectInit
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette