Re: [PATCH net-next v4 1/9] xen-netback: Introduce TX grant map definitions

2014-01-20 Thread Zoltan Kiss
On 16/01/14 00:00, Wei Liu wrote: There is a stray blank line change in xenvif_tx_create_gop. (I removed that part too early and didn't bother to paste it back...) Ok, fixed +static inline bool tx_dealloc_work_todo(struct xenvif *vif) +{ + if (vif->dealloc_cons != vif->dealloc_prod) +

Re: [PATCH net-next v4 1/9] xen-netback: Introduce TX grant map definitions

2014-01-15 Thread Wei Liu
There is a stray blank line change in xenvif_tx_create_gop. (I removed that part too early and didn't bother to paste it back...) On Tue, Jan 14, 2014 at 08:39:47PM +, Zoltan Kiss wrote: [...] > +void xenvif_idx_unmap(struct xenvif *vif, u16 pending_idx) > +{ > + int ret; > + struct gn

Re: [PATCH net-next v4 1/9] xen-netback: Introduce TX grant map definitions

2014-01-15 Thread Zoltan Kiss
On 14/01/14 20:39, Zoltan Kiss wrote: @@ -1677,6 +1793,31 @@ static void xenvif_idx_release(struct xenvif *vif, u16 pending_idx, vif->mmap_pages[pending_idx] = NULL; } +void xenvif_idx_unmap(struct xenvif *vif, u16 pending_idx) +{ + int ret; + struct gnttab_unmap_grant_ref

[PATCH net-next v4 1/9] xen-netback: Introduce TX grant map definitions

2014-01-14 Thread Zoltan Kiss
This patch contains the new definitions necessary for grant mapping. v2: - move unmapping to separate thread. The NAPI instance has to be scheduled even from thread context, which can cause huge delays - that causes unfortunately bigger struct xenvif - store grant handle after checking validity