[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Minios-devel] [UNIKRAFT PATCH v2 00/12] plat/xen: Introduce Xen Netfront driver
The current changes are required for supporting netfront devices. They should be used together with the lwip patch series because they depend on each other. These changes follow the same approach used for the design and implementation of the virtio-net driver. Common functions may be refactored into some common abstraction and used by the two drivers. However, this is be subject to future work. We also revisit the packet buffer allocation design and add support for allocating aligned buffers for packets. This is a requirement of netfront devices because packets are shared between backend and frontend using shared pages. Changes since v1: - Split into multiple patches - Use the new uknetdev API Costin Lupu (12): lib/uknetdev: Make Ethernet macros visible to all network devices lib/uknetdev: Add alignment for allocating packet buffers plat/xen: Add vif device type plat/xen/drivers: Add skeleton for netfront driver plat/xen/drivers/net: Configure netfront device plat/xen/drivers/net: Create netfront queues plat/xen/drivers/net: Configure netfront tx queue plat/xen/drivers/net: Configure netfront rx queue plat/xen/drivers/net: Add support for enabling/disabling interrupts for rx queues plat/xen/drivers/net: Start netfront device plat/xen/drivers/net: Add transmit operation plat/xen/drivers/net: Add receive operation lib/uknetdev/include/uk/netdev_core.h | 8 + plat/drivers/virtio/virtio_net.c | 4 +- plat/xen/Config.uk | 10 + plat/xen/Makefile.uk | 11 + plat/xen/drivers/net/exportsyms.uk | 1 + plat/xen/drivers/net/netfront.c | 844 ++++++++++++++++++++++++++++++++++ plat/xen/drivers/net/netfront.h | 145 ++++++ plat/xen/drivers/net/netfront_xb.h | 46 ++ plat/xen/drivers/net/netfront_xs.c | 522 +++++++++++++++++++++ plat/xen/include/xenbus/xenbus.h | 1 + plat/xen/xenbus/client.c | 1 + 11 files changed, 1591 insertions(+), 2 deletions(-) create mode 100644 plat/xen/drivers/net/exportsyms.uk create mode 100644 plat/xen/drivers/net/netfront.c create mode 100644 plat/xen/drivers/net/netfront.h create mode 100644 plat/xen/drivers/net/netfront_xb.h create mode 100644 plat/xen/drivers/net/netfront_xs.c -- 2.11.0 _______________________________________________ Minios-devel mailing list Minios-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/minios-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |