VirtualBox

Changeset 35382 in vbox for trunk/src


Ignore:
Timestamp:
Dec 30, 2010 4:17:50 PM (14 years ago)
Author:
vboxsync
Message:

vboxnetflt: fix for host panic when bridging to devices with no TX queue

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/VBoxNetFlt/linux/VBoxNetFlt-linux.c

    r35346 r35382  
    584584
    585585    struct Qdisc *pExisting = QDISC_GET(pDev);
     586    /* Do not install our qdisc for devices with no TX queues */
     587    if (!pExisting->enqueue)
     588        return;
    586589    if (strcmp(pExisting->ops->id, "vboxnetflt"))
    587590    {
     
    669672    if (strcmp(pQdisc->ops->id, "vboxnetflt"))
    670673    {
    671         /* Looks like the user has replaced our qdisc manually. */
    672         printk("VBoxNetFlt: Failed to detach qdisc, wrong qdisc: %s\n",
    673                pQdisc->ops->id);
     674        if (pQdisc->enqueue)
     675        {
     676            /* Looks like the user has replaced our qdisc manually. */
     677            printk("VBoxNetFlt: Failed to detach qdisc, wrong qdisc: %s\n",
     678                   pQdisc->ops->id);
     679        }
    674680        return; // TODO: Consider returing an error
    675681    }
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