VirtualBox

Ignore:
Timestamp:
Feb 10, 2016 6:53:47 AM (9 years ago)
Author:
vboxsync
Message:

NetAdp/Win(bugref:6379): Link speed define for easy tweaking

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/VBoxNetAdp/win/VBoxNetAdp-win.cpp

    r57707 r59623  
    2929#include "VBoxNetAdp-win.h"
    3030#include "VBox/VBoxNetCmn-win.h"
     31
     32/*
     33 * By default the link speed reported to be 1Gbps. We may wish to lower
     34 * it to 100Mbps to work around issues with multi-cast traffic on the host.
     35 * See @bugref{6379}.
     36 */
     37#define VBOXNETADPWIN_LINK_SPEED 1000000000ULL
    3138
    3239/* Forward declarations */
     
    270277        GAttrs.PhysicalMediumType = NdisPhysicalMediumUnspecified;
    271278        GAttrs.MtuSize = 1500; //TODO
    272         GAttrs.MaxXmitLinkSpeed = 1000000000ULL;
    273         GAttrs.XmitLinkSpeed = 1000000000ULL;
    274         GAttrs.MaxRcvLinkSpeed = 1000000000ULL;
    275         GAttrs.RcvLinkSpeed = 1000000000ULL;
     279        GAttrs.MaxXmitLinkSpeed = VBOXNETADPWIN_LINK_SPEED;
     280        GAttrs.XmitLinkSpeed = VBOXNETADPWIN_LINK_SPEED;
     281        GAttrs.MaxRcvLinkSpeed = VBOXNETADPWIN_LINK_SPEED;
     282        GAttrs.RcvLinkSpeed = VBOXNETADPWIN_LINK_SPEED;
    276283        GAttrs.MediaConnectState = vboxNetAdpWinGetConnectState(pAdapter);
    277284        GAttrs.MediaDuplexState = MediaDuplexStateFull;
Note: See TracChangeset for help on using the changeset viewer.

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