netdev
[Top] [All Lists]

Re: [Fwd: Re: possible bug x86 2.4.2 SMP in IP receive stack]

To: Jeff Garzik <jgarzik@xxxxxxxxxxxxxxxx>
Subject: Re: [Fwd: Re: possible bug x86 2.4.2 SMP in IP receive stack]
From: Jes Sorensen <jes@xxxxxxxxxxxxx>
Date: 06 Mar 2001 02:07:10 +0100
Cc: Bob Felderman <feldy@xxxxxxxx>, andrewm@xxxxxxxxxx, kuznet@xxxxxxxxxxxxx, netdev@xxxxxxxxxxx
In-reply-to: Jeff Garzik's message of "Mon, 05 Mar 2001 19:12:43 -0500"
References: <200103060000.QAA21285@xxxxxxxxxxxxxxxx> <3AA42B7B.7C562799@xxxxxxxxxxxxxxxx>
Sender: owner-netdev@xxxxxxxxxxx
User-agent: Gnus/5.070096 (Pterodactyl Gnus v0.96) Emacs/20.4
>>>>> "Jeff" == Jeff Garzik <jgarzik@xxxxxxxxxxxxxxxx> writes:

Jeff> * spin_lock around your Tx interrupt handling path.  *
Jeff> spin_lock_irq around your dev->hard_start_xmit Tx submission
Jeff> code.

You don't need locks around this if the hardware is sane.

Jeff> Ideally your Rx interrupt handling path is independent of other
Jeff> code, and need not be locked.

Anyway you only need the locks if two parts of the code can be invoked
simultanously.

Jes

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