[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH V4 2/3] xen-netback: switch to NAPI + kthread 1:1 model



On Tue, Aug 06, 2013 at 04:38:56PM +0100, Ian Campbell wrote:
[...]
> >  * An example sequence of head fields (I = INVALID_PENDING_RING_IDX):
> >  *
> >  * ...|0 I I I|5 I|9 I I I|...
> >  * -->|<-INUSE----------------
> >  *
> >  * After consuming the first slot(s) we have:
> >  *
> >  * ...|V V V V|5 I|9 I I I|...
> >  * -----FREE->|<-INUSE--------
> >  *
> >  * where V stands for "valid pending ring index". Any number other
> >  * than INVALID_PENDING_RING_IDX is OK. In practice we use 0.
> 
> Perhaps add "These entries are considered free and can contain any
> number other than INVALID_PENDING_RING_IDX" ?
> 
> Do you have a #define, like FREE_PENDING_RING_IDX for this value? Should
> mention it if so I think.
> 

Unfortunately no. This can be fixed later with separate patch? Or just
have that change in this patch?


Wei.

> >  *
> >  * The non-INVALID_PENDING_RING_IDX (say 0, 5 and 9 in the above
>         ^ add "in use"?
> 
> >  * example) number is the index into pending_tx_info and mmap_pages
> >  * arrays.
> >  */
> > 
> > > 
> > > Wei.
> > > 
> > > > Ian.
> 

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.