| To: | "David S. Miller" <davem@xxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: [openib-general] Re: LLTX and netif_stop_queue |
| From: | Francois Romieu <romieu@xxxxxxxxxxxxx> |
| Date: | Thu, 20 Jan 2005 01:47:53 +0100 |
| Cc: | Stephen Hemminger <shemminger@xxxxxxxx>, hadi@xxxxxxxxxx, iod00d@xxxxxx, eric.lemoine@xxxxxxxxx, roland@xxxxxxxxxxx, netdev@xxxxxxxxxxx, ak@xxxxxxx, openib-general@xxxxxxxxxx, kaber@xxxxxxxxx |
| In-reply-to: | <20050119154132.68f0bb4f.davem@xxxxxxxxxxxxx> |
| References: | <1104764660.1048.578.camel@xxxxxxxxxxxxxxxx> <52brc68q05.fsf@xxxxxxxxxxx> <5cac192f05010308414a25b548@xxxxxxxxxxxxxx> <527jmu8nbw.fsf@xxxxxxxxxxx> <5cac192f0501030907c755135@xxxxxxxxxxxxxx> <20050103171227.GD7370@xxxxxxxxxxxxxxxxx> <1104812294.1085.53.camel@xxxxxxxxxxxxxxxx> <20050119144711.3fdd3d93.davem@xxxxxxxxxxxxx> <20050119151853.259de49a@xxxxxxxxxxxxxxxxx> <20050119154132.68f0bb4f.davem@xxxxxxxxxxxxx> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
| User-agent: | Mutt/1.4.1i |
David S. Miller <davem@xxxxxxxxxxxxx> : [...] > Originally, dev->xmit_lock was added so that drivers that were SMP dumb > could stay that way. Thus preserving the guarentee that there would be > only one active call into the dev->hard_start_xmit method across the > entire system. I don't think any of that is relevant any longer. All > of our network drivers are pretty clean in this regard. (nit) Almost all. I used the fact that dev->hard_start_xmit was issued in a bh disabled context to exchange spinlock_irqsave for ordered ops on ring indexes so as to sync hard_start_xmit and the irq handler in the r8169 driver. It is a bit sick but Jon Mason reported it made a noticeable difference to avoid the irqsave on its 4 way ppc64 and nobody complained about it. -- Ueimor |
| Previous by Date: | Re: [openib-general] Re: LLTX and netif_stop_queue, David S. Miller |
|---|---|
| Next by Date: | Re: [openib-general] Re: LLTX and netif_stop_queue, David S. Miller |
| Previous by Thread: | Re: [openib-general] Re: LLTX and netif_stop_queue, David S. Miller |
| Next by Thread: | Re: [openib-general] Re: LLTX and netif_stop_queue, David S. Miller |
| Indexes: | [Date] [Thread] [Top] [All Lists] |