|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH net-next V7 3/4] xen-netback: coalesce slots in TX path and fix regressions
On Tue, Apr 30, 2013 at 01:59:59PM +0100, Jan Beulich wrote:
> >>> On 22.04.13 at 14:20, Wei Liu <wei.liu2@xxxxxxxxxx> wrote:
> > @@ -898,47 +928,78 @@ static void netbk_fatal_tx_err(struct xenvif *vif)
> >
> > static int netbk_count_requests(struct xenvif *vif,
> > struct xen_netif_tx_request *first,
> > + RING_IDX first_idx,
> > struct xen_netif_tx_request *txp,
> > int work_to_do)
> > {
> > RING_IDX cons = vif->tx.req_cons;
>
> It looks bogus and confusing to me to pass first_idx into this
> function when this really is the same as cons.
>
So the idea came from David Vrabel and went through two iterations.
Looking at the code he might be mimicking other error handling path up
in the caller, i.e. xen_netbk_tx_build_gops.
It's safe to remove first_idx I think. Just tested replacing first_idx
with cons, everything worked as before.
Wei.
> Jan
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |