diff options
author | Jeff Dike <jdike@addtoit.com> | 2007-10-16 04:26:48 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-16 12:43:05 -0400 |
commit | ad43c3565bebada7e5a13288e37542fd940369e8 (patch) | |
tree | 0946d7e5fc8f4bfa9ce5932d2cd1a921946e7c86 /arch/um/drivers/vde.h | |
parent | 6d536e4b59f77c34a0e5a414dfa934db373c85c2 (diff) |
uml: add VDE networking support
Added vde network backend in uml to introduce native Virtual Distributed
Ethernet support (using libvdeplug).
Signed-off-by: Luca Bigliardi <shammash@artha.org>
Signed-off-by: Jeff Dike <jdike@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/um/drivers/vde.h')
-rw-r--r-- | arch/um/drivers/vde.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/arch/um/drivers/vde.h b/arch/um/drivers/vde.h new file mode 100644 index 000000000000..fc3a05902ba1 --- /dev/null +++ b/arch/um/drivers/vde.h | |||
@@ -0,0 +1,32 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2007 Luca Bigliardi (shammash@artha.org). | ||
3 | * Licensed under the GPL. | ||
4 | */ | ||
5 | |||
6 | #ifndef __UM_VDE_H__ | ||
7 | #define __UM_VDE_H__ | ||
8 | |||
9 | struct vde_data { | ||
10 | char *vde_switch; | ||
11 | char *descr; | ||
12 | void *args; | ||
13 | void *conn; | ||
14 | void *dev; | ||
15 | }; | ||
16 | |||
17 | struct vde_init { | ||
18 | char *vde_switch; | ||
19 | char *descr; | ||
20 | int port; | ||
21 | char *group; | ||
22 | int mode; | ||
23 | }; | ||
24 | |||
25 | extern const struct net_user_info vde_user_info; | ||
26 | |||
27 | extern void vde_init_libstuff(struct vde_data *vpri, struct vde_init *init); | ||
28 | |||
29 | extern int vde_user_read(void *conn, void *buf, int len); | ||
30 | extern int vde_user_write(void *conn, void *buf, int len); | ||
31 | |||
32 | #endif | ||