| To: | Jeff Garzik <jgarzik@xxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH 2.6.7-rc3-mm2 2/5] via-velocity: uniformize use of OWNED_BY_NIC |
| From: | Francois Romieu <romieu@xxxxxxxxxxxxx> |
| Date: | Fri, 18 Jun 2004 23:42:41 +0200 |
| Cc: | netdev@xxxxxxxxxxx, alan@xxxxxxxxxx, akpm@xxxxxxxx |
| In-reply-to: | <40D3584A.9010009@pobox.com>; from jgarzik@pobox.com on Fri, Jun 18, 2004 at 05:02:02PM -0400 |
| References: | <20040618221014.A15640@electric-eye.fr.zoreil.com> <20040618221142.A20210@electric-eye.fr.zoreil.com> <40D3584A.9010009@pobox.com> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
| User-agent: | Mutt/1.2.5.1i |
Jeff Garzik <jgarzik@xxxxxxxxx> :
> Francois Romieu wrote:
[...]
> > +static inline void velocity_give_rx_desc(struct rx_desc *rd)
> > +{
> > + *(u32 *)&rd->rdesc0 = 0;
> > + rd->rdesc0.owner = cpu_to_le32(OWNED_BY_NIC);
> > +}
>
> The patch itself is OK, and I will merge, but I wonder:
>
> isn't a wmb() needed perhaps?
/me scratches head...
Ok, everything should be fine with a change in velocity_give_many_rx_descs():
[...]
if (vptr->rd_filled < 4)
return;
<insert a wmb() here>
unusable = vptr->rd_filled | 0x0003;
I'll queue that for the next serie.
--
Ueimor
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [RFC PATCH] Change "local" route table preference from 0 to 3fff, to permit send-to-self policy routing, Alexey Kuznetsov |
|---|---|
| Next by Date: | Re: [RFC] Wireless extensions rethink, Andrew Morton |
| Previous by Thread: | Re: [PATCH 2.6.7-rc3-mm2 2/5] via-velocity: uniformize use of OWNED_BY_NIC, Jeff Garzik |
| Next by Thread: | Re: [PATCH 2.6.7-rc3-mm2 1/5] via-velocity: PCI ID move, Jeff Garzik |
| Indexes: | [Date] [Thread] [Top] [All Lists] |