netdev
[Top] [All Lists]

[PATCH 2.6.9-rc2 7/8] S2io: NAPI fix

To: "'Jeff Garzik'" <jgarzik@xxxxxxxxx>, "'Francois Romieu'" <romieu@xxxxxxxxxxxxx>
Subject: [PATCH 2.6.9-rc2 7/8] S2io: NAPI fix
From: "Ravinandan Arakali" <ravinandan.arakali@xxxxxxxx>
Date: Wed, 13 Oct 2004 18:16:18 -0700
Cc: <netdev@xxxxxxxxxxx>, <leonid.grossman@xxxxxxxx>, <raghavendra.koushik@xxxxxxxx>, <rapuru.sriram@xxxxxxxx>
Importance: Normal
In-reply-to:
Reply-to: <ravinandan.arakali@xxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
Hi,
This patch contains the following NAPI related fixes.

1. When processing Rx packets, making sure that get offset of ring does not
cross the put
   offset.

2. when NAPI is not in use a new spinlock(put_lock) is used to make sure
accessing put
   offset of ring is atomic.

3. Also introduced a new vaiable put_pos in nic_t to keep track of absolute
position of the
   put pointer of Rx ring.

4. When NAPI is used, fill_rx_buffer is not called from the interrupt
handler(s2io_isr) .

5. In s2io_poll, decrementing packets processed is done inside the while
loop unlike out
   side it as was being done last time.

Signed-off-by: Raghavendra Koushik <raghavendra.koushik@xxxxxxxx>

Attachment: s2io_napifix.patch7
Description: Binary data

<Prev in Thread] Current Thread [Next in Thread>