]> git.baikalelectronics.ru Git - kernel.git/commit
xen-netback: Move grant_copy_op array back into struct xenvif.
authorAndrew J. Bennieston <andrew.bennieston@citrix.com>
Wed, 4 Jun 2014 09:30:41 +0000 (10:30 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Jun 2014 21:48:16 +0000 (14:48 -0700)
commit13cd6df1d347d253b499f2b63a31a1aae41c88cb
treed0900ed18437217a6270bed86af5e97c82b1e45e
parent8446c3e1b6e7e68129a71cbb0c5ef68362567475
xen-netback: Move grant_copy_op array back into struct xenvif.

This array was allocated separately in commit 38ec8775 ("xen-netback:
fix guest-receive-side array sizes") due to it being very large, and a
struct xenvif is allocated as the netdev_priv part of a struct
net_device, i.e. via kmalloc() but falling back to vmalloc() if the
initial alloc. fails.

In preparation for the multi-queue patches, where this array becomes
part of struct xenvif_queue and is always allocated through vzalloc(),
move this back into the struct xenvif.

Signed-off-by: Andrew J. Bennieston <andrew.bennieston@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/xen-netback/common.h
drivers/net/xen-netback/interface.c