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

Re: [Xen-devel] [PATCH v2 net-next] net: extend net_device allocation to vmalloc()

From: Eric Dumazet <eric.dumazet@xxxxxxxxx>
Date: Wed, 30 Oct 2013 13:10:44 -0700

> From: Eric Dumazet <edumazet@xxxxxxxxxx>
> Joby Poriyath provided a xen-netback patch to reduce the size of
> xenvif structure as some netdev allocation could fail under
> memory pressure/fragmentation.
> This patch is handling the problem at the core level, allowing
> any netdev structures to use vmalloc() if kmalloc() failed.
> As vmalloc() adds overhead on a critical network path, add __GFP_REPEAT
> to kzalloc() flags to do this fallback only when really needed.
> Signed-off-by: Eric Dumazet <edumazet@xxxxxxxxxx>
> Reported-by: Joby Poriyath <joby.poriyath@xxxxxxxxxx>
> Cc: Ben Hutchings <bhutchings@xxxxxxxxxxxxxx>
> ---
> v2: change the Documentation to point to alloc_netdev_mqs()
>     instead of kmalloc()/vzalloc(), from Ben

Looks good, applied, thanks Eric.

Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.