Re: [PATCH net-next v3 2/2] xen-netback: Grant copy the header instead of map and memcpy

2014-04-03 Thread David Miller
From: Zoltan Kiss Date: Wed, 2 Apr 2014 18:04:58 +0100 > An old inefficiency of the TX path that we are grant mapping the first slot, > and then copy the header part to the linear area. Instead, doing a grant copy > for that header straight on is more reasonable. Especially because there are >

Re: [PATCH net-next v3 2/2] xen-netback: Grant copy the header instead of map and memcpy

2014-04-03 Thread Ian Campbell
On Thu, 2014-04-03 at 09:07 +0100, Paul Durrant wrote: > > -Original Message- > > From: Zoltan Kiss > > Sent: 02 April 2014 18:05 > > To: Ian Campbell; Wei Liu; xen-de...@lists.xenproject.org > > Cc: Paul Durrant; net...@vger.kernel.org; linux-kernel@vger.kernel.org; > > Jonathan Davies;

RE: [PATCH net-next v3 2/2] xen-netback: Grant copy the header instead of map and memcpy

2014-04-03 Thread Paul Durrant
> -Original Message- > From: Zoltan Kiss > Sent: 02 April 2014 18:05 > To: Ian Campbell; Wei Liu; xen-de...@lists.xenproject.org > Cc: Paul Durrant; net...@vger.kernel.org; linux-kernel@vger.kernel.org; > Jonathan Davies; Zoltan Kiss > Subject: [PATCH net-next v3 2/2] xen-netback: Grant

Re: [PATCH net-next v3 2/2] xen-netback: Grant copy the header instead of map and memcpy

2014-04-03 Thread David Miller
From: Zoltan Kiss zoltan.k...@citrix.com Date: Wed, 2 Apr 2014 18:04:58 +0100 An old inefficiency of the TX path that we are grant mapping the first slot, and then copy the header part to the linear area. Instead, doing a grant copy for that header straight on is more reasonable. Especially

RE: [PATCH net-next v3 2/2] xen-netback: Grant copy the header instead of map and memcpy

2014-04-03 Thread Paul Durrant
-Original Message- From: Zoltan Kiss Sent: 02 April 2014 18:05 To: Ian Campbell; Wei Liu; xen-de...@lists.xenproject.org Cc: Paul Durrant; net...@vger.kernel.org; linux-kernel@vger.kernel.org; Jonathan Davies; Zoltan Kiss Subject: [PATCH net-next v3 2/2] xen-netback: Grant copy the

Re: [PATCH net-next v3 2/2] xen-netback: Grant copy the header instead of map and memcpy

2014-04-03 Thread Ian Campbell
On Thu, 2014-04-03 at 09:07 +0100, Paul Durrant wrote: -Original Message- From: Zoltan Kiss Sent: 02 April 2014 18:05 To: Ian Campbell; Wei Liu; xen-de...@lists.xenproject.org Cc: Paul Durrant; net...@vger.kernel.org; linux-kernel@vger.kernel.org; Jonathan Davies; Zoltan Kiss

[PATCH net-next v3 2/2] xen-netback: Grant copy the header instead of map and memcpy

2014-04-02 Thread Zoltan Kiss
An old inefficiency of the TX path that we are grant mapping the first slot, and then copy the header part to the linear area. Instead, doing a grant copy for that header straight on is more reasonable. Especially because there are ongoing efforts to make Xen avoiding TLB flush after unmap when

[PATCH net-next v3 2/2] xen-netback: Grant copy the header instead of map and memcpy

2014-04-02 Thread Zoltan Kiss
An old inefficiency of the TX path that we are grant mapping the first slot, and then copy the header part to the linear area. Instead, doing a grant copy for that header straight on is more reasonable. Especially because there are ongoing efforts to make Xen avoiding TLB flush after unmap when