| To: | ravinandan.arakali@xxxxxxxx |
|---|---|
| Subject: | Re: [PATCH 2.6.9-rc2 6/8] S2io: new txd allocation |
| From: | Jeff Garzik <jgarzik@xxxxxxxxx> |
| Date: | Thu, 14 Oct 2004 10:58:18 -0400 |
| Cc: | "'Francois Romieu'" <romieu@xxxxxxxxxxxxx>, netdev@xxxxxxxxxxx, leonid.grossman@xxxxxxxx, raghavendra.koushik@xxxxxxxx, rapuru.sriram@xxxxxxxx |
| In-reply-to: | <005201c4b18b$538b5ff0$6c10100a@S2IOtech.com> |
| References: | <005201c4b18b$538b5ff0$6c10100a@S2IOtech.com> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
| User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040922 |
Ravinandan Arakali wrote:
Hi, The attached patch contains a modified scheme for allocating Tx descriptor blocks. More description follows. Comments: 1) spinlock in s2io_close looks questionable. at best you want to minimize the area covered by it. you are guaranteed that netif_running() will be false if the net stack is calling, or has called, dev->stop() hook. 2) netif_queue_stopped() will never be false when your dev->hard_start_xmit() hook is called 3) referencing the code above, you should (a) not free the package and (b) return from the following codes listed in include/linux/netdevice.h: #define NETDEV_TX_OK 0 /* driver took care of packet */ #define NETDEV_TX_BUSY 1 /* driver tx path was busy*/ #define NETDEV_TX_LOCKED -1 /* driver tx lock was already taken */ |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH 2.6.9-rc2 5/8] S2io: module loadable parameters, Jeff Garzik |
|---|---|
| Next by Date: | Re: PATCH: netpoll with xircom_cb, Petr Konecny |
| Previous by Thread: | [PATCH 2.6.9-rc2 6/8] S2io: new txd allocation, Ravinandan Arakali |
| Next by Thread: | [PATCH 2.6.9-rc2 7/8] S2io: NAPI fix, Ravinandan Arakali |
| Indexes: | [Date] [Thread] [Top] [All Lists] |