Ticket #7879: qdisc_noqueue.patch
| File qdisc_noqueue.patch, 1.1 KB (added by , 14 years ago) |
|---|
-
src/vboxhost/vboxnetflt/linux/VBoxNetFlt-linux.c
old new 583 583 PVBOXNETQDISCPRIV pPriv; 584 584 585 585 struct Qdisc *pExisting = QDISC_GET(pDev); 586 /* Do not install our qdisc for devices with no TX queues */ 587 if (!pExisting->enqueue) 588 return; 586 589 if (strcmp(pExisting->ops->id, "vboxnetflt")) 587 590 { 588 591 /* The existing qdisc is different from ours, let's create new one. */ … … 668 671 pQdisc = QDISC_GET(pDev); 669 672 if (strcmp(pQdisc->ops->id, "vboxnetflt")) 670 673 { 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 } 674 680 return; // TODO: Consider returing an error 675 681 } 676 682

