Re: [Xen-devel] [RFC] netif: staging grants for requests

2017-01-09 Thread Stefano Stabellini
On Mon, 9 Jan 2017, Paul Durrant wrote: > > Wouldn't it be better to introduce the new memcpy based scheme for RX > > only? > > It would certainly be reasonable to tackle RX first. But I don't want to > force a copy in the TX path when it may be possible to avoid it. > > > > > This suggestion

Re: [Xen-devel] [RFC] netif: staging grants for requests

2017-01-09 Thread Joao Martins
On 01/09/2017 08:56 AM, Paul Durrant wrote: >> -Original Message- >> From: Joao Martins [mailto:joao.m.mart...@oracle.com] >> Sent: 06 January 2017 20:09 >> To: Paul Durrant >> Cc: xen-de...@lists.xenproject.org; Andrew Cooper >> ; Wei

Re: [Xen-devel] [RFC] netif: staging grants for requests

2017-01-09 Thread Paul Durrant
> -Original Message- > From: Stefano Stabellini [mailto:sstabell...@kernel.org] > Sent: 06 January 2017 19:18 > To: Paul Durrant > Cc: Joao Martins ; xen- > de...@lists.xenproject.org; Andrew Cooper ; > Wei Liu

Re: [Xen-devel] [RFC] netif: staging grants for requests

2017-01-09 Thread Paul Durrant
> -Original Message- > From: Joao Martins [mailto:joao.m.mart...@oracle.com] > Sent: 06 January 2017 20:09 > To: Paul Durrant > Cc: xen-de...@lists.xenproject.org; Andrew Cooper > ; Wei Liu ; Stefano > Stabellini

Re: [Xen-devel] [RFC] netif: staging grants for requests

2017-01-06 Thread Joao Martins
On 01/06/2017 07:18 PM, Stefano Stabellini wrote: > On Fri, 6 Jan 2017, Paul Durrant wrote: >>> -Original Message- >>> From: Joao Martins [mailto:joao.m.mart...@oracle.com] >>> Sent: 14 December 2016 18:11 >>> To: xen-de...@lists.xenproject.org >>> Cc: David Vrabel

Re: [Xen-devel] [RFC] netif: staging grants for requests

2017-01-06 Thread Joao Martins
On 01/06/2017 09:33 AM, Paul Durrant wrote: >> -Original Message- >> From: Joao Martins [mailto:joao.m.mart...@oracle.com] >> Sent: 14 December 2016 18:11 >> To: xen-de...@lists.xenproject.org >> Cc: David Vrabel ; Andrew Cooper >> ; Wei

Re: [Xen-devel] [RFC] netif: staging grants for requests

2017-01-06 Thread Stefano Stabellini
On Fri, 6 Jan 2017, Paul Durrant wrote: > > -Original Message- > > From: Joao Martins [mailto:joao.m.mart...@oracle.com] > > Sent: 14 December 2016 18:11 > > To: xen-de...@lists.xenproject.org > > Cc: David Vrabel ; Andrew Cooper > > ;

Re: [Xen-devel] [RFC] netif: staging grants for requests

2017-01-06 Thread Stefano Stabellini
On Fri, 6 Jan 2017, Joao Martins wrote: > >>> I don't think it makes sense: the rest of the page would still be > >>> accessible from the backend, which could compromise its content. I would > >>> share a list of pages that can be mapped contiguously to create a data > >>> ring. > >> Note that the

Re: [Xen-devel] [RFC] netif: staging grants for requests

2017-01-06 Thread Joao Martins
On 01/06/2017 12:30 AM, Stefano Stabellini wrote: > On Thu, 5 Jan 2017, Joao Martins wrote: >> Hey Stefano, >> >> Thanks a lot for the review and the comments!! >> >> On 01/04/2017 07:40 PM, Stefano Stabellini wrote: >>> On Wed, 14 Dec 2016, Joao Martins wrote: # Proposed Extension

Re: [Xen-devel] [RFC] netif: staging grants for requests

2017-01-06 Thread Paul Durrant
> -Original Message- > From: Joao Martins [mailto:joao.m.mart...@oracle.com] > Sent: 14 December 2016 18:11 > To: xen-de...@lists.xenproject.org > Cc: David Vrabel ; Andrew Cooper > ; Wei Liu ; Paul Durrant >

Re: [Xen-devel] [RFC] netif: staging grants for requests

2017-01-05 Thread Stefano Stabellini
On Thu, 5 Jan 2017, Joao Martins wrote: > Hey Stefano, > > Thanks a lot for the review and the comments!! > > On 01/04/2017 07:40 PM, Stefano Stabellini wrote: > > On Wed, 14 Dec 2016, Joao Martins wrote: > >> # Proposed Extension > >> > >> ## Terminology > >> > >> `data gref` refers to the

Re: [Xen-devel] [RFC] netif: staging grants for requests

2017-01-05 Thread Joao Martins
Hey Stefano, Thanks a lot for the review and the comments!! On 01/04/2017 07:40 PM, Stefano Stabellini wrote: > On Wed, 14 Dec 2016, Joao Martins wrote: >> # Proposed Extension >> >> ## Terminology >> >> `data gref` refers to the reusable/staging grants, whereas `gref` are the >> ones that are

Re: [Xen-devel] [RFC] netif: staging grants for requests

2017-01-05 Thread Joao Martins
On 01/04/2017 01:54 PM, Wei Liu wrote: > Hey! Hey! > Thanks for writing this detailed document! Thanks a lot for the review and comments! > > On Wed, Dec 14, 2016 at 06:11:12PM +, Joao Martins wrote: >> Hey, >> >> Back in the Xen hackaton '16 networking session there were a couple of ideas

Re: [Xen-devel] [RFC] netif: staging grants for requests

2017-01-05 Thread Wei Liu
On Wed, Jan 04, 2017 at 11:40:21AM -0800, Stefano Stabellini wrote: > On Wed, 14 Dec 2016, Joao Martins wrote: > > # Proposed Extension > > > > ## Terminology > > > > `data gref` refers to the reusable/staging grants, whereas `gref` are the > > ones that are granted/revoked for each packet being

Re: [Xen-devel] [RFC] netif: staging grants for requests

2017-01-04 Thread Stefano Stabellini
On Wed, 14 Dec 2016, Joao Martins wrote: > # Proposed Extension > > ## Terminology > > `data gref` refers to the reusable/staging grants, whereas `gref` are the > ones that are granted/revoked for each packet being sent. `command ring` > refers to the current ring, whereas `data list` refers to

Re: [Xen-devel] [RFC] netif: staging grants for requests

2017-01-04 Thread Wei Liu
Hey! Thanks for writing this detailed document! On Wed, Dec 14, 2016 at 06:11:12PM +, Joao Martins wrote: > Hey, > > Back in the Xen hackaton '16 networking session there were a couple of ideas > brought up. One of them was about exploring permanently mapped grants between >

[Xen-devel] [RFC] netif: staging grants for requests

2016-12-14 Thread Joao Martins
Hey, Back in the Xen hackaton '16 networking session there were a couple of ideas brought up. One of them was about exploring permanently mapped grants between xen-netback/xen-netfront. I started experimenting and came up with sort of a design document (in pandoc) on what it would like to be