VirtualBox

Changeset 85608 in vbox for trunk


Ignore:
Timestamp:
Aug 5, 2020 2:26:00 AM (4 years ago)
Author:
vboxsync
Message:

Limit to size of instance data, which includes queue pair arrays

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/DevVirtioNet_1_0.cpp

    r85415 r85608  
    126126
    127127#if FEATURE_OFFERED(MQ)
    128 #   define VIRTIONET_MAX_QPAIRS         1000
     128#   define VIRTIONET_MAX_QPAIRS         1000 /* Instance data doesn't allow an array with VIRTIONET_CTRL_MQ_VQ_PAIRS_MAX entries */
    129129#else
    130130#   define VIRTIONET_MAX_QPAIRS         VIRTIONET_CTRL_MQ_VQ_PAIRS_MIN
     
    29872987#   endif
    29882988
    2989     pThis->virtioNetConfig.uMaxVirtqPairs   = VIRTIONET_CTRL_MQ_VQ_PAIRS_MAX;
     2989    pThis->virtioNetConfig.uMaxVirtqPairs   = VIRTIONET_MAX_QPAIRS;
    29902990
    29912991    pThisCC->Virtio.pfnVirtqNotified        = virtioNetVirtqNotified;
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