[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20120515134307.GA31377@electric-eye.fr.zoreil.com>
Date: Tue, 15 May 2012 15:43:07 +0200
From: Francois Romieu <romieu@...zoreil.com>
To: "Shimoda, Yoshihiro" <yoshihiro.shimoda.uh@...esas.com>
Cc: David Miller <davem@...emloft.net>, netdev@...r.kernel.org,
linux-sh@...r.kernel.org
Subject: Re: [PATCH v3 6/6] net: sh_eth: use NAPI
Shimoda, Yoshihiro <yoshihiro.shimoda.uh@...esas.com> :
[...]
> I will modify the code as the following. Is it correct?
No.
Please take a look at tg3, especially the ...mb() calls and rework the
queue disabling part in the xmit handler. Btw sh_eth_txfree has no
business being called from the xmit and poll handlers at the same time.
There is no memory barrier in the xmit handler. It it not clear if the
poll thread always sees tx ring status and cur_tx updates in the same
order or not. If not, the driver may unmap before the device actually
accesses skb buffer.
--
Ueimor
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists