]> git.baikalelectronics.ru Git - kernel.git/commit
xen network backend driver
authorIan Campbell <Ian.Campbell@citrix.com>
Tue, 15 Mar 2011 00:06:18 +0000 (00:06 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Mar 2011 02:38:03 +0000 (19:38 -0700)
commitb1a0d3b7c3e978abcc30fa71fea079a617334b78
treeba7d264f94d9e6938ef4e36f93e179162e12cf20
parentb3f365c8396206b7f53a3555fa7a74be0f805c17
xen network backend driver

netback is the host side counterpart to the frontend driver in
drivers/net/xen-netfront.c. The PV protocol is also implemented by
frontend drivers in other OSes too, such as the BSDs and even Windows.

The patch is based on the driver from the xen.git pvops kernel tree but
has been put through the checkpatch.pl wringer plus several manual
cleanup passes and review iterations. The driver has been moved from
drivers/xen/netback to drivers/net/xen-netback.

One major change from xen.git is that the guest transmit path (i.e. what
looks like receive to netback) has been significantly reworked to remove
the dependency on the out of tree PageForeign page flag (a core kernel
patch which enables a per page destructor callback on the final
put_page). This page flag was used in order to implement a grant map
based transmit path (where guest pages are mapped directly into SKB
frags). Instead this version of netback uses grant copy operations into
regular memory belonging to the backend domain. Reinstating the grant
map functionality is something which I would like to revisit in the
future.

Note that this driver depends on 285e0b9de507 "xen/irq: implement
bind_interdomain_evtchn_to_irqhandler for backend drivers" which is in
linux next via the "xen-two" tree and is intended for the 2.6.39 merge
window:
        git://git.kernel.org/pub/scm/linux/kernel/git/konrad/xen.git stable/backends
this branch has only that single commit since 2.6.38-rc2 and is safe for
cross merging into the net branch.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Reviewed-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/Kconfig
drivers/net/Makefile
drivers/net/xen-netback/Makefile [new file with mode: 0644]
drivers/net/xen-netback/common.h [new file with mode: 0644]
drivers/net/xen-netback/interface.c [new file with mode: 0644]
drivers/net/xen-netback/netback.c [new file with mode: 0644]
drivers/net/xen-netback/xenbus.c [new file with mode: 0644]
drivers/net/xen-netfront.c
include/xen/interface/io/netif.h