]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net/xen-netfront: Make it running on 64KB page granularity
authorJulien Grall <julien.grall@citrix.com>
Fri, 10 Apr 2015 13:42:21 +0000 (14:42 +0100)
committerJoao Martins <joao.m.martins@oracle.com>
Sun, 27 Mar 2016 01:01:14 +0000 (02:01 +0100)
commite3ac9c7137fb77dc5ecf7a3d3915e6c0b8717c65
tree31228e4b84d2e4059c21e5b8adedf409aada47dd
parentf432f679a8d66abced7f97985ad08de100b77445
net/xen-netfront: Make it running on 64KB page granularity

The PV network protocol is using 4KB page granularity. The goal of this
patch is to allow a Linux using 64KB page granularity using network
device on a non-modified Xen.

It's only necessary to adapt the ring size and break skb data in small
chunk of 4KB. The rest of the code is relying on the grant table code.

Note that we allocate a Linux page for each rx skb but only the first
4KB is used. We may improve the memory usage by extending the size of
the rx skb.

Signed-off-by: Julien Grall <julien.grall@citrix.com>
Reviewed-by: David Vrabel <david.vrabel@citrix.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
(cherry picked from commit 30c5d7f0da82f55c86c0a09bf21c0623474bb17f)
Signed-off-by: Joao Martins <joao.m.martins@oracle.com>
drivers/net/xen-netfront.c