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

[Minios-devel] [UNIKRAFT PATCH 00/15] Introduce a tap driver for Unikraft



The patch series introduces a tap driver for the linuxu platform. The series is
structured as follows:
- Introduce the uk_netdev interface implemented by the tap driver
- Introduce pseudo tap bus to initialize the driver and probe a tap device.
- The tap device discovered are registered with the uk_netdev.
- Configure the netdevice by creating tap network interface.
- Configure the hw address on the tap device.
- Attach the tap device to a bridge interface.
- Fetch and configure the MTU.
- Check if the promiscuous mode is set
- Fetch the txq/rxq information.
- Configure the tx queue.
- Configure the rx queue.
- Start the tap interface.
- Implement packet receive on the tap interface
- Implement packet send on the tap interface
- Fix the error code difference between Unikraft and linux.

Sharan Santhanam (15):
  plat/linuxu/tap: Introduce tap driver
  plat/tap: Bus interface for the tap device
  plat/driver: Add tap device to the uk_netdev
  plat/driver: Create a tap dev during configuration
  plat/tap: Get/Set hw_addr
  plat/tap: Add tap to bridge
  plat/tap: Get/Set MTU
  plat/tap: Get promiscuous mode
  plat/tap: Fetch txq and rxq info
  plat/tap: Setup txq
  plat/tap: Setup rxq
  plat/tap: Start a tap device
  plat/tap: Support tap_netdev_recv
  plat/driver: Support tap_netdev_xmit
  plat/linuxu: Convert linux errno to unikraft errno

 plat/drivers/tap/tap.c                      | 844 ++++++++++++++++++++++++++++
 plat/linuxu/Config.uk                       |  18 +
 plat/linuxu/Makefile.uk                     |  13 +
 plat/linuxu/include/linuxu/syscall-arm_32.h |   1 +
 plat/linuxu/include/linuxu/syscall-x86_64.h |   1 +
 plat/linuxu/include/linuxu/syscall.h        |  52 ++
 plat/linuxu/include/linuxu/tap.h            | 159 ++++++
 plat/linuxu/tap_io.c                        | 150 +++++
 8 files changed, 1238 insertions(+)
 create mode 100644 plat/drivers/tap/tap.c
 create mode 100644 plat/linuxu/include/linuxu/tap.h
 create mode 100644 plat/linuxu/tap_io.c

-- 
2.7.4


_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

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