[PATCH for stable 3.15 1/4 v2] xen-netback: Fix handling frag_list on grant op error path

2014-07-21 Thread Zoltan Kiss
The error handling for skb's with frag_list was completely wrong, it caused double unmap attempts to happen if the error was on the first skb. Move it to the right place in the loop. Signed-off-by: Zoltan Kiss zoltan.k...@citrix.com Reported-by: Armin Zentai armin.zen...@ezit.hu Cc:

[PATCH net 1/4 v2] xen-netback: Fix handling frag_list on grant op error path

2014-07-18 Thread Zoltan Kiss
The error handling for skb's with frag_list was completely wrong, it caused double unmap attempts to happen if the error was on the first skb. Move it to the right place in the loop. Signed-off-by: Zoltan Kiss Reported-by: Armin Zentai Cc: net...@vger.kernel.org Cc: linux-kernel@vger.kernel.org

Re: [PATCH net 1/4] xen-netback: Fix handling frag_list on grant op error path

2014-07-18 Thread Zoltan Kiss
On 18/07/14 16:24, Wei Liu wrote: On Thu, Jul 17, 2014 at 08:09:49PM +0100, Zoltan Kiss wrote: The error handling for skb's with frag_list was completely wrong, it caused double unmap attempts to happen if the error was on the first skb. Move it to the right place in the loop. Signed-off-by:

Re: [PATCH net 1/4] xen-netback: Fix handling frag_list on grant op error path

2014-07-18 Thread Wei Liu
On Thu, Jul 17, 2014 at 08:09:49PM +0100, Zoltan Kiss wrote: > The error handling for skb's with frag_list was completely wrong, it caused > double unmap attempts to happen if the error was on the first skb. Move it to > the right place in the loop. > > Signed-off-by: Zoltan Kiss > Reported-by:

Re: [PATCH net 1/4] xen-netback: Fix handling frag_list on grant op error path

2014-07-18 Thread Zoltan Kiss
On 18/07/14 16:24, Wei Liu wrote: On Thu, Jul 17, 2014 at 08:09:49PM +0100, Zoltan Kiss wrote: The error handling for skb's with frag_list was completely wrong, it caused double unmap attempts to happen if the error was on the first skb. Move it to the right place in the loop. Signed-off-by:

[PATCH net 1/4 v2] xen-netback: Fix handling frag_list on grant op error path

2014-07-18 Thread Zoltan Kiss
The error handling for skb's with frag_list was completely wrong, it caused double unmap attempts to happen if the error was on the first skb. Move it to the right place in the loop. Signed-off-by: Zoltan Kiss zoltan.k...@citrix.com Reported-by: Armin Zentai armin.zen...@ezit.hu Cc:

Re: [PATCH net 1/4] xen-netback: Fix handling frag_list on grant op error path

2014-07-18 Thread Wei Liu
On Thu, Jul 17, 2014 at 08:09:49PM +0100, Zoltan Kiss wrote: The error handling for skb's with frag_list was completely wrong, it caused double unmap attempts to happen if the error was on the first skb. Move it to the right place in the loop. Signed-off-by: Zoltan Kiss

[PATCH for stable 3.15 1/4] xen-netback: Fix handling frag_list on grant op error path

2014-07-17 Thread Zoltan Kiss
The error handling for skb's with frag_list was completely wrong, it caused double unmap attempts to happen if the error was on the first skb. Move it to the right place in the loop. Signed-off-by: Zoltan Kiss Reported-by: Armin Zentai Cc: net...@vger.kernel.org Cc: linux-kernel@vger.kernel.org

[PATCH net 1/4] xen-netback: Fix handling frag_list on grant op error path

2014-07-17 Thread Zoltan Kiss
The error handling for skb's with frag_list was completely wrong, it caused double unmap attempts to happen if the error was on the first skb. Move it to the right place in the loop. Signed-off-by: Zoltan Kiss Reported-by: Armin Zentai Cc: net...@vger.kernel.org Cc: linux-kernel@vger.kernel.org

[PATCH net 1/4] xen-netback: Fix handling frag_list on grant op error path

2014-07-17 Thread Zoltan Kiss
The error handling for skb's with frag_list was completely wrong, it caused double unmap attempts to happen if the error was on the first skb. Move it to the right place in the loop. Signed-off-by: Zoltan Kiss zoltan.k...@citrix.com Reported-by: Armin Zentai armin.zen...@ezit.hu Cc:

[PATCH for stable 3.15 1/4] xen-netback: Fix handling frag_list on grant op error path

2014-07-17 Thread Zoltan Kiss
The error handling for skb's with frag_list was completely wrong, it caused double unmap attempts to happen if the error was on the first skb. Move it to the right place in the loop. Signed-off-by: Zoltan Kiss zoltan.k...@citrix.com Reported-by: Armin Zentai armin.zen...@ezit.hu Cc:

United Nations Poverty Threshold 2014 Grant Award Winners!!!

2014-05-29 Thread UNITED NATIONS
Dear Sir/Madam, I am directed to inform you that a Grant Award have been approved by the United Nations Development Programmed (UNDP) under your watch. Kindly establish communication to know more about your approval details with the contact information Sincerely, Mr. Jan Knutsson

United Nations Poverty Threshold 2014 Grant Award Winners!!!

2014-05-29 Thread UNITED NATIONS
Dear Sir/Madam, I am directed to inform you that a Grant Award have been approved by the United Nations Development Programmed (UNDP) under your watch. Kindly establish communication to know more about your approval details with the contact information Sincerely, Mr. Jan Knutsson

Grant Award!!!

2014-04-08 Thread Ford Foundation
Attention, The Ford Foundation has awarded the sum of 1.5m USD as a Grant Donation to you please contacts Email: grantawa...@ford-foundation.org with your details.Thanks Regards Ford Foundation Orphanage -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" i

Grant Award!!!

2014-04-08 Thread Ford Foundation
Attention, The Ford Foundation has awarded the sum of 1.5m USD as a Grant Donation to you please contacts Email: grantawa...@ford-foundation.org with your details.Thanks Regards Ford Foundation Orphanage -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body

Re: [Xen-devel] [PATCH] grant-table, xen-netback: Introduce helper functions for grant copy operations

2014-04-04 Thread Ian Campbell
On Thu, 2014-04-03 at 10:48 +0100, David Vrabel wrote: > On 03/04/14 09:12, Paul Durrant wrote: > > Zoltan Kiss wrote: > >> > >> Create helper functions for grant copy operations and use them in netback. > >> > [...] > >> --- a/drivers/net/xen-netb

Re: [Xen-devel] [PATCH] grant-table, xen-netback: Introduce helper functions for grant copy operations

2014-04-04 Thread Ian Campbell
On Thu, 2014-04-03 at 10:48 +0100, David Vrabel wrote: On 03/04/14 09:12, Paul Durrant wrote: Zoltan Kiss wrote: Create helper functions for grant copy operations and use them in netback. [...] --- a/drivers/net/xen-netback/netback.c +++ b/drivers/net/xen-netback/netback.c

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. Especiall

Re: [Xen-devel] [PATCH] grant-table, xen-netback: Introduce helper functions for grant copy operations

2014-04-03 Thread David Vrabel
On 03/04/14 09:12, Paul Durrant wrote: > Zoltan Kiss wrote: >> >> Create helper functions for grant copy operations and use them in netback. >> [...] >> --- a/drivers/net/xen-netback/netback.c >> +++ b/drivers/net/xen-netback/netback.c >> @@ -275,23 +275

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

2014-04-03 Thread Ian Campbell
ernel.org; > > Jonathan Davies; Zoltan Kiss > > Subject: [PATCH net-next v3 2/2] xen-netback: Grant copy the header > > instead of map and memcpy > > > > An old inefficiency of the TX path that we are grant mapping the first slot, > > and then copy th

RE: [PATCH] grant-table, xen-netback: Introduce helper functions for grant copy operations

2014-04-03 Thread Paul Durrant
.org; linux- > ker...@vger.kernel.org; Jonathan Davies; Zoltan Kiss > Subject: [PATCH] grant-table, xen-netback: Introduce helper functions for > grant copy operations > > Create helper functions for grant copy operations and use them in netback. > > Signed-off-by: Zoltan Kiss > --- > d

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/

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

RE: [PATCH] grant-table, xen-netback: Introduce helper functions for grant copy operations

2014-04-03 Thread Paul Durrant
; Jonathan Davies; Zoltan Kiss Subject: [PATCH] grant-table, xen-netback: Introduce helper functions for grant copy operations Create helper functions for grant copy operations and use them in netback. Signed-off-by: Zoltan Kiss zoltan.k...@citrix.com --- diff --git a/drivers/net/xen-netback

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

2014-04-03 Thread Ian Campbell
Subject: [PATCH net-next v3 2/2] xen-netback: Grant copy the header instead of map and memcpy 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

Re: [Xen-devel] [PATCH] grant-table, xen-netback: Introduce helper functions for grant copy operations

2014-04-03 Thread David Vrabel
On 03/04/14 09:12, Paul Durrant wrote: Zoltan Kiss wrote: Create helper functions for grant copy operations and use them in netback. [...] --- a/drivers/net/xen-netback/netback.c +++ b/drivers/net/xen-netback/netback.c @@ -275,23 +275,29 @@ static void xenvif_gop_frag_copy(struct xenvif

[PATCH] grant-table, xen-netback: Introduce helper functions for grant copy operations

2014-04-02 Thread Zoltan Kiss
Create helper functions for grant copy operations and use them in netback. Signed-off-by: Zoltan Kiss --- diff --git a/drivers/net/xen-netback/netback.c b/drivers/net/xen-netback/netback.c index 8d3bb4a..874df60 100644 --- a/drivers/net/xen-netback/netback.c +++ b/drivers/net/xen-netback

[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

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

2014-04-02 Thread Zoltan Kiss
On 02/04/14 14:11, David Vrabel wrote: On 01/04/14 12:40, Ian Campbell wrote: On Mon, 2014-03-31 at 16:08 +0100, Zoltan Kiss wrote: __skb_put(skb, data_len); + vif->tx_copy_ops[*copy_ops].source.u.ref = txreq.gref; +

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

2014-04-02 Thread Ian Campbell
On Wed, 2014-04-02 at 14:11 +0100, David Vrabel wrote: > I'd be in favour of a patch that: > > - renamed gnttab_map_refs() to gnttab_batch_map_pages() > - refactored it to call gnttab_batch_map(). > - added documentation > > But I don't see why this would be a prerequisite for this series. No,

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

2014-04-02 Thread David Vrabel
On 01/04/14 12:40, Ian Campbell wrote: > On Mon, 2014-03-31 at 16:08 +0100, Zoltan Kiss wrote: >> >> __skb_put(skb, data_len); >> +vif->tx_copy_ops[*copy_ops].source.u.ref = txreq.gref; >> +vif->tx_copy_ops[*copy_ops].source.domid = vif->domid; >> +

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

2014-04-02 Thread Ian Campbell
; nr_frags; i++, gop_map++) { > >>int j, newerr; > >> > >>pending_idx = frag_get_pending_idx(>frags[i]); > >> - tx_info = >pending_tx_info[pending_idx]; > >> > >>/* Check error status: if okay

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

2014-04-02 Thread Ian Campbell
;> -if (unlikely(xenvif_tx_check_gop(vif, skb, _map))) > { > >> +if (unlikely(xenvif_tx_check_gop(vif, skb, _map, > >> _copy))) { > >> netdev_dbg(vif->dev, "netback grant > failed.\n"); > > >

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

2014-04-02 Thread Ian Campbell
, gop_map))) { +if (unlikely(xenvif_tx_check_gop(vif, skb, gop_map, gop_copy))) { netdev_dbg(vif-dev, netback grant failed.\n); It could have been the copy that failed. You should probably change the error message. I've changed it to netback grant op failed

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

2014-04-02 Thread Ian Campbell
; pending_idx = frag_get_pending_idx(shinfo-frags[i]); - tx_info = vif-pending_tx_info[pending_idx]; /* Check error status: if okay then remember grant handle. */ - newerr = (++gop_map)-status; + newerr = (gop_map)-status; You've reworked

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

2014-04-02 Thread David Vrabel
On 01/04/14 12:40, Ian Campbell wrote: On Mon, 2014-03-31 at 16:08 +0100, Zoltan Kiss wrote: __skb_put(skb, data_len); +vif-tx_copy_ops[*copy_ops].source.u.ref = txreq.gref; +vif-tx_copy_ops[*copy_ops].source.domid = vif-domid; +

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

2014-04-02 Thread Ian Campbell
On Wed, 2014-04-02 at 14:11 +0100, David Vrabel wrote: I'd be in favour of a patch that: - renamed gnttab_map_refs() to gnttab_batch_map_pages() - refactored it to call gnttab_batch_map(). - added documentation But I don't see why this would be a prerequisite for this series. No, I

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

2014-04-02 Thread Zoltan Kiss
On 02/04/14 14:11, David Vrabel wrote: On 01/04/14 12:40, Ian Campbell wrote: On Mon, 2014-03-31 at 16:08 +0100, Zoltan Kiss wrote: __skb_put(skb, data_len); + vif-tx_copy_ops[*copy_ops].source.u.ref = txreq.gref; +

[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] grant-table, xen-netback: Introduce helper functions for grant copy operations

2014-04-02 Thread Zoltan Kiss
Create helper functions for grant copy operations and use them in netback. Signed-off-by: Zoltan Kiss zoltan.k...@citrix.com --- diff --git a/drivers/net/xen-netback/netback.c b/drivers/net/xen-netback/netback.c index 8d3bb4a..874df60 100644 --- a/drivers/net/xen-netback/netback.c +++ b/drivers

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

2014-04-01 Thread Zoltan Kiss
>frags[i]); - tx_info = >pending_tx_info[pending_idx]; /* Check error status: if okay then remember grant handle. */ - newerr = (++gop_map)->status; + newerr = (gop_map)->status; You've reworked the handling of gop_map

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

2014-04-01 Thread Zoltan Kiss
if (unlikely(xenvif_tx_check_gop(vif, skb, _map))) { + if (unlikely(xenvif_tx_check_gop(vif, skb, _map, _copy))) { netdev_dbg(vif->dev, "netback grant failed.\n"); It could have been the copy that failed. You should probably change the error message. I've changed it

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

2014-04-01 Thread Ian Campbell
s[i]); > - tx_info = >pending_tx_info[pending_idx]; > > /* Check error status: if okay then remember grant handle. */ > - newerr = (++gop_map)->status; > + newerr = (gop_map)->status; You've reworked the handling of gop

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

2014-04-01 Thread Paul Durrant
> -Original Message- > From: Zoltan Kiss > Sent: 31 March 2014 16:09 > 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 v2 2/

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

2014-04-01 Thread Paul Durrant
-Original Message- From: Zoltan Kiss Sent: 31 March 2014 16:09 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 v2 2/2] xen-netback: Grant copy

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

2014-04-01 Thread Ian Campbell
-pending_tx_info[pending_idx]; /* Check error status: if okay then remember grant handle. */ - newerr = (++gop_map)-status; + newerr = (gop_map)-status; You've reworked the handling of gop_map and when and where it is incremented, which might be a legit

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

2014-04-01 Thread Zoltan Kiss
))) { netdev_dbg(vif-dev, netback grant failed.\n); It could have been the copy that failed. You should probably change the error message. I've changed it to netback grant op failed.\n @@ -1588,22 +1588,26 @@ static inline void xenvif_tx_dealloc_action(struct xenvif *vif) /* Called after

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

2014-04-01 Thread Zoltan Kiss
-frags[i]); - tx_info = vif-pending_tx_info[pending_idx]; /* Check error status: if okay then remember grant handle. */ - newerr = (++gop_map)-status; + newerr = (gop_map)-status; You've reworked the handling of gop_map and when and where

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

2014-03-31 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 v2 2/2] xen-netback: Grant copy the header instead of map and memcpy

2014-03-31 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

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

2014-03-27 Thread Zoltan Kiss
, it would need some grant-table.c changes first. I've put it onto my todo list. Zoli -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please re

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

2014-03-27 Thread Zoltan Kiss
On 27/03/14 12:54, Ian Campbell wrote: On Thu, 2014-03-27 at 12:46 +, Zoltan Kiss wrote: On 27/03/14 11:35, Ian Campbell wrote: On Wed, 2014-03-26 at 21:18 +, Zoltan Kiss wrote: An old inefficiency of the TX path that we are grant mapping the first slot, and then copy the header part

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

2014-03-27 Thread Ian Campbell
On Thu, 2014-03-27 at 12:46 +, Zoltan Kiss wrote: > On 27/03/14 11:35, Ian Campbell wrote: > > On Wed, 2014-03-26 at 21:18 +, Zoltan Kiss wrote: > >> An old inefficiency of the TX path that we are grant mapping the first > >> slot, > >> and then cop

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

2014-03-27 Thread Zoltan Kiss
On 27/03/14 11:35, Ian Campbell wrote: On Wed, 2014-03-26 at 21:18 +, Zoltan Kiss wrote: 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

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

2014-03-27 Thread Ian Campbell
On Wed, 2014-03-26 at 21:18 +, Zoltan Kiss wrote: > 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. Especiall

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

2014-03-27 Thread Ian Campbell
On Wed, 2014-03-26 at 21:18 +, Zoltan Kiss wrote: 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

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

2014-03-27 Thread Zoltan Kiss
On 27/03/14 11:35, Ian Campbell wrote: On Wed, 2014-03-26 at 21:18 +, Zoltan Kiss wrote: 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

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

2014-03-27 Thread Ian Campbell
On Thu, 2014-03-27 at 12:46 +, Zoltan Kiss wrote: On 27/03/14 11:35, Ian Campbell wrote: On Wed, 2014-03-26 at 21:18 +, Zoltan Kiss wrote: 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

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

2014-03-27 Thread Zoltan Kiss
On 27/03/14 12:54, Ian Campbell wrote: On Thu, 2014-03-27 at 12:46 +, Zoltan Kiss wrote: On 27/03/14 11:35, Ian Campbell wrote: On Wed, 2014-03-26 at 21:18 +, Zoltan Kiss wrote: An old inefficiency of the TX path that we are grant mapping the first slot, and then copy the header part

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

2014-03-27 Thread Zoltan Kiss
, it would need some grant-table.c changes first. I've put it onto my todo list. Zoli -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ

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

2014-03-26 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

Re: [PATCH net-next v3 2/3] xen-netback: Non-functional follow-up patch for grant mapping series

2014-03-26 Thread David Miller
From: Zoltan Kiss Date: Mon, 24 Mar 2014 23:59:50 + > Ian made some late comments about the grant mapping series, I incorporated the > non-functional outcomes into this patch: > > - typo fixes in a comment of xenvif_free(), and add another one there as well > - typo

Re: [PATCH net-next v3 3/3] xen-netback: Functional follow-up patch for grant mapping series

2014-03-26 Thread David Miller
From: Zoltan Kiss Date: Mon, 24 Mar 2014 23:59:51 + > Ian made some late comments about the grant mapping series, I incorporated the > functional outcomes into this patch: > > - use callback_param macro to shorten access to pending_tx_info in > xenvif_fill_frags() and x

Re: [PATCH net-next v3 3/3] xen-netback: Functional follow-up patch for grant mapping series

2014-03-26 Thread David Miller
From: Zoltan Kiss zoltan.k...@citrix.com Date: Mon, 24 Mar 2014 23:59:51 + Ian made some late comments about the grant mapping series, I incorporated the functional outcomes into this patch: - use callback_param macro to shorten access to pending_tx_info in xenvif_fill_frags

Re: [PATCH net-next v3 2/3] xen-netback: Non-functional follow-up patch for grant mapping series

2014-03-26 Thread David Miller
From: Zoltan Kiss zoltan.k...@citrix.com Date: Mon, 24 Mar 2014 23:59:50 + Ian made some late comments about the grant mapping series, I incorporated the non-functional outcomes into this patch: - typo fixes in a comment of xenvif_free(), and add another one there as well - typo fix

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

2014-03-26 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 3/3] xen-netback: Functional follow-up patch for grant mapping series

2014-03-24 Thread Zoltan Kiss
Ian made some late comments about the grant mapping series, I incorporated the functional outcomes into this patch: - use callback_param macro to shorten access to pending_tx_info in xenvif_fill_frags() and xenvif_tx_submit() - print an error message in xenvif_idx_unmap() before panic Signed

[PATCH net-next v3 2/3] xen-netback: Non-functional follow-up patch for grant mapping series

2014-03-24 Thread Zoltan Kiss
Ian made some late comments about the grant mapping series, I incorporated the non-functional outcomes into this patch: - typo fixes in a comment of xenvif_free(), and add another one there as well - typo fix for comment of rx_drain_timeout_msecs - remove stale comment before calling

Re: [PATCH net-next v2 3/3] xen-netback: Follow-up patch for grant mapping series

2014-03-24 Thread David Miller
Patches #2 and #3 have the same exact Subject line, please repost with unique subject lines so that someone scanning the shortlog can tell what might be different between these two commits. Thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a

[PATCH net-next v2 3/3] xen-netback: Follow-up patch for grant mapping series

2014-03-24 Thread Zoltan Kiss
Ian made some late comments about the grant mapping series, I incorporated the functional outcomes into this patch: - use callback_param macro to shorten access to pending_tx_info in xenvif_fill_frags() and xenvif_tx_submit() - print an error message in xenvif_idx_unmap() before panic Signed

[PATCH net-next v2 2/3] xen-netback: Follow-up patch for grant mapping series

2014-03-24 Thread Zoltan Kiss
Ian made some late comments about the grant mapping series, I incorporated the non-functional outcomes into this patch: - typo fixes in a comment of xenvif_free(), and add another one there as well - typo fix for comment of rx_drain_timeout_msecs - remove stale comment before calling

Re: [PATCH net-next] xen-netback: Follow-up patch for grant mapping series

2014-03-24 Thread Ian Campbell
On Fri, 2014-03-21 at 19:31 +, Zoltan Kiss wrote: > On 21/03/14 09:41, Ian Campbell wrote: > > On Thu, 2014-03-20 at 19:32 +, Zoltan Kiss wrote: > >> Ian made some late comments about the grant mapping series, I incorporated > >> the > >> outcomes

Re: [PATCH net-next] xen-netback: Follow-up patch for grant mapping series

2014-03-24 Thread Ian Campbell
On Fri, 2014-03-21 at 19:31 +, Zoltan Kiss wrote: On 21/03/14 09:41, Ian Campbell wrote: On Thu, 2014-03-20 at 19:32 +, Zoltan Kiss wrote: Ian made some late comments about the grant mapping series, I incorporated the outcomes into this patch. Additional comments, refactoring etc

[PATCH net-next v2 3/3] xen-netback: Follow-up patch for grant mapping series

2014-03-24 Thread Zoltan Kiss
Ian made some late comments about the grant mapping series, I incorporated the functional outcomes into this patch: - use callback_param macro to shorten access to pending_tx_info in xenvif_fill_frags() and xenvif_tx_submit() - print an error message in xenvif_idx_unmap() before panic Signed

[PATCH net-next v2 2/3] xen-netback: Follow-up patch for grant mapping series

2014-03-24 Thread Zoltan Kiss
Ian made some late comments about the grant mapping series, I incorporated the non-functional outcomes into this patch: - typo fixes in a comment of xenvif_free(), and add another one there as well - typo fix for comment of rx_drain_timeout_msecs - remove stale comment before calling

Re: [PATCH net-next v2 3/3] xen-netback: Follow-up patch for grant mapping series

2014-03-24 Thread David Miller
Patches #2 and #3 have the same exact Subject line, please repost with unique subject lines so that someone scanning the shortlog can tell what might be different between these two commits. Thanks. -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message

[PATCH net-next v3 3/3] xen-netback: Functional follow-up patch for grant mapping series

2014-03-24 Thread Zoltan Kiss
Ian made some late comments about the grant mapping series, I incorporated the functional outcomes into this patch: - use callback_param macro to shorten access to pending_tx_info in xenvif_fill_frags() and xenvif_tx_submit() - print an error message in xenvif_idx_unmap() before panic Signed

[PATCH net-next v3 2/3] xen-netback: Non-functional follow-up patch for grant mapping series

2014-03-24 Thread Zoltan Kiss
Ian made some late comments about the grant mapping series, I incorporated the non-functional outcomes into this patch: - typo fixes in a comment of xenvif_free(), and add another one there as well - typo fix for comment of rx_drain_timeout_msecs - remove stale comment before calling

Re: [PATCH net-next] xen-netback: Follow-up patch for grant mapping series

2014-03-21 Thread Zoltan Kiss
On 21/03/14 09:41, Ian Campbell wrote: On Thu, 2014-03-20 at 19:32 +, Zoltan Kiss wrote: Ian made some late comments about the grant mapping series, I incorporated the outcomes into this patch. Additional comments, refactoring etc. I don't know how davem feels about merging these kinds

Re: [PATCH net-next] xen-netback: Follow-up patch for grant mapping series

2014-03-21 Thread David Miller
From: Zoltan Kiss Date: Thu, 20 Mar 2014 19:32:41 + > Ian made some late comments about the grant mapping series, I incorporated the > outcomes into this patch. Additional comments, refactoring etc. > > Signed-off-by: Zoltan Kiss I would really prefer that pure non-functi

Re: [PATCH net-next] xen-netback: Follow-up patch for grant mapping series

2014-03-21 Thread Ian Campbell
On Thu, 2014-03-20 at 19:32 +, Zoltan Kiss wrote: > Ian made some late comments about the grant mapping series, I incorporated the > outcomes into this patch. Additional comments, refactoring etc. I don't know how davem feels about merging these kinds of thing into one patch but from my

Re: [PATCH net-next] xen-netback: Follow-up patch for grant mapping series

2014-03-21 Thread Ian Campbell
On Thu, 2014-03-20 at 19:32 +, Zoltan Kiss wrote: Ian made some late comments about the grant mapping series, I incorporated the outcomes into this patch. Additional comments, refactoring etc. I don't know how davem feels about merging these kinds of thing into one patch but from my point

Re: [PATCH net-next] xen-netback: Follow-up patch for grant mapping series

2014-03-21 Thread David Miller
From: Zoltan Kiss zoltan.k...@citrix.com Date: Thu, 20 Mar 2014 19:32:41 + Ian made some late comments about the grant mapping series, I incorporated the outcomes into this patch. Additional comments, refactoring etc. Signed-off-by: Zoltan Kiss zoltan.k...@citrix.com I would really

Re: [PATCH net-next] xen-netback: Follow-up patch for grant mapping series

2014-03-21 Thread Zoltan Kiss
On 21/03/14 09:41, Ian Campbell wrote: On Thu, 2014-03-20 at 19:32 +, Zoltan Kiss wrote: Ian made some late comments about the grant mapping series, I incorporated the outcomes into this patch. Additional comments, refactoring etc. I don't know how davem feels about merging these kinds

[PATCH net-next] xen-netback: Follow-up patch for grant mapping series

2014-03-20 Thread Zoltan Kiss
Ian made some late comments about the grant mapping series, I incorporated the outcomes into this patch. Additional comments, refactoring etc. Signed-off-by: Zoltan Kiss --- diff --git a/drivers/net/xen-netback/interface.c b/drivers/net/xen-netback/interface.c index 6837bfc..fa19538 100644

[PATCH net-next] xen-netback: Follow-up patch for grant mapping series

2014-03-20 Thread Zoltan Kiss
Ian made some late comments about the grant mapping series, I incorporated the outcomes into this patch. Additional comments, refactoring etc. Signed-off-by: Zoltan Kiss zoltan.k...@citrix.com --- diff --git a/drivers/net/xen-netback/interface.c b/drivers/net/xen-netback/interface.c index

Re: [PATCH] xen/grant-table: Refactor gnttab_[un]map_refs to avoid m2p_override

2014-03-16 Thread Stefano Stabellini
On Mon, 10 Mar 2014, David Vrabel wrote: > On 27/02/14 15:55, Zoltan Kiss wrote: > > (This is a continuation of "[PATCH v9] xen/grant-table: Avoid m2p_override > > during mapping") > > > > The grant mapping API does m2p_override unnecessarily: only gntdev

Re: [PATCH] xen/grant-table: Refactor gnttab_[un]map_refs to avoid m2p_override

2014-03-16 Thread Stefano Stabellini
On Mon, 10 Mar 2014, David Vrabel wrote: On 27/02/14 15:55, Zoltan Kiss wrote: (This is a continuation of [PATCH v9] xen/grant-table: Avoid m2p_override during mapping) The grant mapping API does m2p_override unnecessarily: only gntdev needs it, for blkback and future netback patches

Re: [PATCH net-next v7 0/9] xen-netback: TX grant mapping with SKBTX_DEV_ZEROCOPY instead of copy

2014-03-13 Thread Zoltan Kiss
with 10Gb NICs, and generally it's a >huge perfomance penalty. The classic kernel version of netback used grant >mapping, and to get notified when the page can be unmapped, it used page >destructors. Unfortunately that destructor is not an upstreamable solution. >Ian Campbell's skb frag

Re: [PATCH net-next v7 4/9] xen-netback: Introduce TX grant mapping

2014-03-13 Thread Zoltan Kiss
On 13/03/14 13:56, Ian Campbell wrote: On Thu, 2014-03-13 at 13:17 +, Zoltan Kiss wrote: On 13/03/14 10:33, Ian Campbell wrote: On Thu, 2014-03-06 at 21:48 +, Zoltan Kiss wrote: + netdev_err(vif->dev, + "Page

Re: [PATCH net-next v7 4/9] xen-netback: Introduce TX grant mapping

2014-03-13 Thread Ian Campbell
ng[MAX_PENDING_REQS]; > >>struct pending_tx_info pending_tx_info[MAX_PENDING_REQS]; > >> + grant_handle_t grant_tx_handle[MAX_PENDING_REQS]; > >> > >>/* Coalescing tx requests before copying makes number of grant > >> * copy ops greater or eq

Re: [PATCH net-next v7 4/9] xen-netback: Introduce TX grant mapping

2014-03-13 Thread Zoltan Kiss
]; + grant_handle_t grant_tx_handle[MAX_PENDING_REQS]; /* Coalescing tx requests before copying makes number of grant * copy ops greater or equal to number of slots required. In * worst case a tx request consumes 2 gnttab_copy. */ struct gnttab_copy tx_copy_ops[2

Re: [PATCH net-next v7 4/9] xen-netback: Introduce TX grant mapping

2014-03-13 Thread Zoltan Kiss
On 13/03/14 10:17, Ian Campbell wrote: Pulling out this one comment for the attention on the core Xen/Linux maintainers. On Thu, 2014-03-06 at 21:48 +, Zoltan Kiss wrote: [...] @@ -343,8 +347,26 @@ struct xenvif *xenvif_alloc(struct device *parent, domid_t domid, vif->pending_prod

Re: [Xen-devel] [PATCH net-next v7 4/9] xen-netback: Introduce TX grant mapping

2014-03-13 Thread Wei Liu
35,13 +146,31 @@ struct xenvif { > > >> pending_ring_idx_t pending_cons; > > >> u16 pending_ring[MAX_PENDING_REQS]; > > >> struct pending_tx_info pending_tx_info[MAX_PENDING_REQS]; > > >> +grant_handle_t grant_tx_handle[MAX_PENDING_REQS]; > >

Re: [Xen-devel] [PATCH net-next v7 4/9] xen-netback: Introduce TX grant mapping

2014-03-13 Thread David Vrabel
nding_ring_idx_t pending_cons; >>>>u16 pending_ring[MAX_PENDING_REQS]; >>>>struct pending_tx_info pending_tx_info[MAX_PENDING_REQS]; >>>> + grant_handle_t grant_tx_handle[MAX_PENDING_REQS]; >>>> >>>>/* Coalescing tx requests

Re: [Xen-devel] [PATCH net-next v7 4/9] xen-netback: Introduce TX grant mapping

2014-03-13 Thread Ian Campbell
ng[MAX_PENDING_REQS]; > >>struct pending_tx_info pending_tx_info[MAX_PENDING_REQS]; > >> + grant_handle_t grant_tx_handle[MAX_PENDING_REQS]; > >> > >>/* Coalescing tx requests before copying makes number of grant > >> * copy ops greater or eq

Re: [Xen-devel] [PATCH net-next v7 4/9] xen-netback: Introduce TX grant mapping

2014-03-13 Thread David Vrabel
ng_tx_info[MAX_PENDING_REQS]; >> +grant_handle_t grant_tx_handle[MAX_PENDING_REQS]; >> >> /* Coalescing tx requests before copying makes number of grant >> * copy ops greater or equal to number of slots required. In >> * worst case a tx request consu

Re: [PATCH net-next v7 0/9] xen-netback: TX grant mapping with SKBTX_DEV_ZEROCOPY instead of copy

2014-03-13 Thread Ian Campbell
On Wed, 2014-03-12 at 15:40 +, Ian Campbell wrote: > On Sat, 2014-03-08 at 18:57 -0500, David Miller wrote: > > From: Zoltan Kiss > > Date: Sat, 8 Mar 2014 14:37:50 + > > > > > Maybe you mixed up mine with that? But that's also not eligible to be > > > applied yet. > > > > I can always

Re: [PATCH net-next v7 4/9] xen-netback: Introduce TX grant mapping

2014-03-13 Thread Ian Campbell
grant_tx_handle[MAX_PENDING_REQS]; > > /* Coalescing tx requests before copying makes number of grant >* copy ops greater or equal to number of slots required. In >* worst case a tx request consumes 2 gnttab_copy. >*/ > struct gnttab_copy tx_copy_ops[2*MAX_

<    3   4   5   6   7   8   9   10   11   12   >