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

Re: [Xen-devel] [PATCH 2/3] public/io/netif.h: document control ring and toeplitz hashing



> -----Original Message-----
> From: David Vrabel [mailto:david.vrabel@xxxxxxxxxx]
> Sent: 23 December 2015 13:28
> To: Paul Durrant; xen-devel@xxxxxxxxxxxxxxxxxxxx
> Cc: Keir (Xen.org); Ian Campbell; Tim (Xen.org); Ian Jackson; Jan Beulich
> Subject: Re: [Xen-devel] [PATCH 2/3] public/io/netif.h: document control
> ring and toeplitz hashing
> 
> On 23/12/15 10:06, Paul Durrant wrote:
> > This patch documents a new shared (variable message length) ring
> between
> > frontend and backend that can be used to pass bulk out-of-band data, such
> > as that required to implement toeplitz hashing in the backend that is
> > configurable by the frontend.
> >
> > The patch then goes on to document the messages passed over the control
> [...]
> > ring that can be used to configure toeplitz hashing.
> > --- a/xen/include/public/io/netif.h
> > +++ b/xen/include/public/io/netif.h
> > @@ -151,6 +151,326 @@
> >   */
> >
> >  /*
> > + * Control ring:
> [...]
> > + *
> > + * The layout of the shared page is as follows:
> > + *
> > + *    0     1     2     3     4     5     6     7  octet
> > + * +-----+-----+-----+-----+-----+-----+-----+-----+
> > + * |        req_cons       |        req_prod       |
> > + * +-----+-----+-----+-----+-----+-----+-----+-----+
> > + * |        rsp_cons       |        rsp_prod       |
> > + * +-----+-----+-----+-----+-----+-----+-----+-----+
> > + * |                                               |
> > + * +                                               +
> > + * |                      req[1024]                |
> > + *                         .
> > + *                         .
> > + * |                                               |
> > + * +-----+-----+-----+-----+-----+-----+-----+-----+
> > + * |                                               |
> > + * +                                               +
> > + * |                      rsp[1024]                |
> > + *                         .
> > + *                         .
> > + * |                                               |
> > + * +-----+-----+-----+-----+-----+-----+-----+-----+
> 
> You should use the standard ring format and infrastructure.

Is there one for variable message size rings? I didn't find one. I don't want 
to use the fixed size balanced ring macros for control messages as fixed size 
messages really aren't appropriate in this case.

  Paul

> 
> David

_______________________________________________
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®.