| To: | Jeff Garzik <jgarzik@xxxxxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: Tx queueing |
| From: | jamal <hadi@xxxxxxxxxx> |
| Date: | Mon, 22 May 2000 12:00:18 -0400 (EDT) |
| Cc: | Andrew Morton <andrewm@xxxxxxxxxx>, Donald Becker <becker@xxxxxxxxx>, "netdev@xxxxxxxxxxx" <netdev@xxxxxxxxxxx> |
| In-reply-to: | <39288893.DBFE549E@xxxxxxxxxxxxxxxx> |
| Sender: | owner-netdev@xxxxxxxxxxx |
On Sun, 21 May 2000, Jeff Garzik wrote:
> Example A:
>
> drv_start_xmit() {
spinlock
> netif_stop_queue()
> /* queue packet for xmit */
> if (!tx_full)
> netif_start_queue()
> }
unlock
> interrupt() {
spinlock
> /* Tx'd a packet */
> if (tx_full)
> netif_stop_queue()
> else
> netif_wake_queue()
> }
>
unlock
that should do it; you are already doing it anyways.
I hope Donald doesnt flame me ;->
cheers,
jamal
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: tx_timeout and timer serialisation, Andrey Savochkin |
|---|---|
| Next by Date: | Re: Tx queueing, Donald Becker |
| Previous by Thread: | Re: Tx queueing, Andrey Savochkin |
| Next by Thread: | Re: Tx queueing, Donald Becker |
| Indexes: | [Date] [Thread] [Top] [All Lists] |