Changeset 31654 in vbox for trunk/src/VBox/HostDrivers/VBoxNetFlt/linux/VBoxNetFlt-linux.c
- Timestamp:
- Aug 13, 2010 2:38:49 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxNetFlt/linux/VBoxNetFlt-linux.c
r31627 r31654 352 352 { 353 353 PVBOXNETQDISCPRIV pPriv = qdisc_priv(sch); 354 355 ++sch->qstats.drops; 356 --sch->q.qlen; 354 unsigned int cbLen; 355 357 356 if (pPriv->pChild->ops->drop) 358 return pPriv->pChild->ops->drop(pPriv->pChild); 357 { 358 cbLen = pPriv->pChild->ops->drop(pPriv->pChild); 359 if (cbLen != 0) 360 { 361 ++sch->qstats.drops; 362 --sch->q.qlen; 363 return cbLen; 364 } 365 } 359 366 360 367 return 0; … … 607 614 # endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 32) */ 608 615 #endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27) */ 616 /* Synch the queue len with our child */ 617 pNew->q.qlen = pPriv->pChild->q.qlen; 609 618 } 610 619 else … … 2232 2241 int vboxNetFltOsDisconnectIt(PVBOXNETFLTINS pThis) 2233 2242 { 2243 #ifdef VBOXNETFLT_WITH_QDISC 2244 vboxNetFltLinuxQdiscRemove(pThis, NULL); 2245 #endif /* VBOXNETFLT_WITH_QDISC */ 2234 2246 /* 2235 2247 * Remove packet handler when we get disconnected from internal switch as … … 2275 2287 vboxNetFltLinuxUnhookDev(pThis, NULL); 2276 2288 #endif 2277 #ifdef VBOXNETFLT_WITH_QDISC2278 vboxNetFltLinuxQdiscRemove(pThis, NULL);2279 #endif /* VBOXNETFLT_WITH_QDISC */2280 2289 2281 2290 /** @todo This code may race vboxNetFltLinuxUnregisterDevice (very very
Note:
See TracChangeset
for help on using the changeset viewer.