| To: | Tommy Christensen <tommy.christensen@xxxxxxxxx> |
|---|---|
| Subject: | Re: [patch 4/10] s390: network driver. |
| From: | jamal <hadi@xxxxxxxxxx> |
| Date: | 07 Jan 2005 08:32:37 -0500 |
| Cc: | Jeff Garzik <jgarzik@xxxxxxxxx>, Thomas Spatzier <thomas.spatzier@xxxxxxxxxx>, "David S. Miller" <davem@xxxxxxxxxxxxx>, Hasso Tepper <hasso@xxxxxxxxx>, Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>, netdev@xxxxxxxxxxx, Paul Jakma <paul@xxxxxxxx> |
| In-reply-to: | <1105023972.3462.48.camel@tsc-6.cph.tpack.net> |
| Organization: | jamalopolous |
| References: | <OFB7F7E23F.EFB88418-ONC1256F7E.0031769E-C1256F7E.003270AD@de.ibm.com> <1104764710.1048.580.camel@jzny.localdomain> <41DB26A6.2070008@pobox.com> <1104895169.1117.63.camel@jzny.localdomain> <41DC0931.80603@tpack.net> <1105019912.2314.20.camel@jzny.localdomain> <1105023972.3462.48.camel@tsc-6.cph.tpack.net> |
| Reply-to: | hadi@xxxxxxxxxx |
| Sender: | netdev-bounce@xxxxxxxxxxx |
On Thu, 2005-01-06 at 10:06, Tommy Christensen wrote: > But qdisc_restart() isn't called any more after the queue is > stopped. So how do we get to drain the packets? We return -1; so qdisc restart will be called until theres no packets left on the queue. Did i miss something in the state machine there? > Another approach could be to reset the qdisc (kind of what > dev_deactivate does) if the driver stays in queue_stopped > and carrier_off for some period of time. > reseting qdisc could certainly be part of the device watchdog. Note that once the packets are drained, the next thing that will happen if device is stopped for a dev->timeout period is watchdog kicking in and flushing the DMA. So you could reset your qdisc there though i am not sure it will be needed with that patch. cheers, jamal |
| Previous by Date: | Re: require packet path at device layer, Neil Horman |
|---|---|
| Next by Date: | Re: [RFC] ematch API, u32 ematch, nbyte ematch, basic classifier, jamal |
| Previous by Thread: | Re: [patch 4/10] s390: network driver., Tommy Christensen |
| Next by Thread: | Re: [patch 4/10] s390: network driver., Tommy Christensen |
| Indexes: | [Date] [Thread] [Top] [All Lists] |