|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Minios-devel] [UNIKRAFT PATCH 02/15] plat/tap: Bus interface for the tap device
Hi Sharan, Thank you very much for the patch. Please, see my comments inline. Best, Roxana On 07.10.2019 12:46, Sharan Santhanam wrote: I will introduce this list in the next patch when you introduce `struct tap_net_dev`. It is unknown for now.The tap driver registers itself with the uk_bus. The uk_bus on initialization provide the necessary interface to setup the driver. The probe callback provides necessary interface to setup the tap device. Signed-off-by: Sharan Santhanam<sharan.santhanam@xxxxxxxxx> --- plat/drivers/tap/tap.c | 38 ++++++++++++++++++++++++++++++++++++++ plat/linuxu/Config.uk | 1 + 2 files changed, 39 insertions(+) diff --git a/plat/drivers/tap/tap.c b/plat/drivers/tap/tap.c index d233c6d..ffd21be 100644 --- a/plat/drivers/tap/tap.c +++ b/plat/drivers/tap/tap.c @@ -32,12 +32,16 @@ * THIS HEADER MAY NOT BE EXTRACTED OR MODIFIED IN ANY WAY. */ #include <errno.h> +#include <stdio.h> +#include <string.h> #include <uk/alloc.h> #include <uk/arch/types.h> #include <uk/netdev_core.h> #include <uk/netdev_driver.h> #include <uk/netbuf.h> #include <uk/errptr.h> +#include <uk/bus.h> +#define TAPDEV_MAX_CNT 7#define TAPDEV_IFNAME_BRS 255 @@ -54,6 +58,18 @@#define ETH_PKT_PAYLOAD_LEN 1500 +struct tap_net_drv {+ struct uk_alloc *a; + UK_TAILQ_HEAD(tdev_list, struct tap_net_dev) tap_dev_list; Could you provide some comments for this members? It would increase the visibility.+ __u16 tap_dev_cnt; + char **bridge_ifs; +}; We should move it in the next patch. _______________________________________________ Minios-devel mailing list Minios-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/minios-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |