| To: | Jeff Garzik <jgarzik@xxxxxxxxx> |
|---|---|
| Subject: | Re: [patch 4/10] s390: network driver. |
| From: | Tommy Christensen <tommy.christensen@xxxxxxxxx> |
| Date: | Tue, 21 Dec 2004 01:13:20 +0100 |
| Cc: | hadi@xxxxxxxxxx, 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: | <41C71FFD.7090308@xxxxxxxxx> |
| References: | <OF28701C56.81E1D26E-ONC1256F6B.00513EDD-C1256F6B.0052AF84@xxxxxxxxxx> <1103484552.1046.155.camel@xxxxxxxxxxxxxxxx> <41C600D7.70005@xxxxxxxxx> <1103497516.1046.231.camel@xxxxxxxxxxxxxxxx> <41C612BC.5070909@xxxxxxxxx> <1103551830.1047.316.camel@xxxxxxxxxxxxxxxx> <41C71FFD.7090308@xxxxxxxxx> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
| User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.2) Gecko/20040803 |
Jeff Garzik wrote: I haven't heard anything to convince me that the same change should be deployed across NNN drivers. The drivers already signal the net core that the link is down; to me, that implies there should be code in _one_ place that handles this condition, not NNN places. AFAICS only a handful of (newer) drivers call netif_stop_queue() directly. Others may do this indirectly if the MAC stops taking packets from the DMA ringbuffer. At least some MAC's/drivers certainly don't. I've always thought of netif_stop_queue() as the replacement of the old tbusy flag, signaling a transient condition where the HW is unable to keep up with the flow of packets. And it seems to be used for just this in most cases. Perhaps somebody confused netif_stop_queue with dev_deactivate() ?? OK, another view on this: isn't is problematic to have skb's stuck in the network stack "indefinitely" ? They hold references to a dst_entry and a sock (and probably more). So how about this for the FAQ: Q: Why can't I unload the af_packet module? A: Ohh, you'll have to plug in the darn cable to eth0 first! *Please* tell me, I've got this all wrong. -Tommy |
| Previous by Date: | Re: [PATCH] PKT_SCHED: Provide compat policer stats in action policer, David S. Miller |
|---|---|
| Next by Date: | TG3 fix for slow switches (Was: TG3 driver failure on HP 16-way), Peter Chubb |
| Previous by Thread: | Re: [patch 4/10] s390: network driver., Jeff Garzik |
| Next by Thread: | Re: [patch 4/10] s390: network driver., Jeff Garzik |
| Indexes: | [Date] [Thread] [Top] [All Lists] |