[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <g2t65634d661004281107j676369c9ge379434723478c1@mail.gmail.com>
Date: Wed, 28 Apr 2010 11:07:31 -0700
From: Tom Herbert <therbert@...gle.com>
To: Joe Perches <joe@...ches.com>
Cc: netdev@...r.kernel.org, aabdulla@...dia.com, davem@...emloft.net
Subject: Re: [PATCH] forcedeth: Stay in NAPI as long as there's work
>
> It might be better to test the comparisons using
> a cpu_to_le32 of the constants.
>
Yes. Probably should also be changed in nv_tx_done{_optimized} and
nv_rx_process{_optimized}
> static inline int nv_has_work(struct fe_priv *np)
> {
> if (nv_optimized(np))
> return ((np->get_rx.ex != np->put_rx.ex) &&
> !(np->get_rx.ex->flaglen & cpu_to_le32(NV_RX2_AVAIL))) ||
> ((np->get_tx.ex != np->put_tx.ex) &&
> !(np->get_tx.ex->flaglen & cpu_to_le32(NV_TX_VALID)));
>
> return ((np->get_rx.orig != np->put_rx.orig) &&
> !(np->get_rx.orig->flaglen & cpu_to_le32(NV_RX_AVAIL))) ||
> ((np->get_tx.orig != np->put_tx.orig) &&
> !(np->get_tx.orig->flaglen & cpu_to_le32(NV_TX_VALID)));
> }
>
>
>
--
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