summaryrefslogtreecommitdiff
path: root/lib/netdev-provider.h
diff options
context:
space:
mode:
authorNithin Raju <nithin@vmware.com>2014-10-06 13:07:19 -0700
committerBen Pfaff <blp@nicira.com>2014-10-06 15:38:22 -0700
commit078eedf4f70cfb3cacb8372ed3da7e4951aa4d23 (patch)
tree29a186d1cfaa8939feb6fbc8c3da23d95ee14fe9 /lib/netdev-provider.h
parent83cc9d5612955f1c5f4d2c09a58ae84ce9db6ac4 (diff)
downloadopenvswitch-078eedf4f70cfb3cacb8372ed3da7e4951aa4d23.tar.gz
netdev-windows: New module.
In this patch, we add a lib/netdev-windows.c which mostly contains stub code and in subsequent patches, would use the netlink interface to query netdev information for a vport. The code implements netdev functionality for "internal" and "system" types of vports. Signed-off-by: Nithin Raju <nithin@vmware.com> Acked-by: Ankur Sharma <ankursharma@vmware.com> Acked-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com> Tested-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'lib/netdev-provider.h')
-rw-r--r--lib/netdev-provider.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/netdev-provider.h b/lib/netdev-provider.h
index 0e4cda5b5..af9ea3c23 100644
--- a/lib/netdev-provider.h
+++ b/lib/netdev-provider.h
@@ -705,12 +705,15 @@ struct netdev_class {
int netdev_register_provider(const struct netdev_class *);
int netdev_unregister_provider(const char *type);
-extern const struct netdev_class netdev_linux_class;
-extern const struct netdev_class netdev_internal_class;
-extern const struct netdev_class netdev_tap_class;
#if defined(__FreeBSD__) || defined(__NetBSD__)
extern const struct netdev_class netdev_bsd_class;
+#elif defined(_WIN32)
+extern const struct netdev_class netdev_windows_class;
+#else
+extern const struct netdev_class netdev_linux_class;
#endif
+extern const struct netdev_class netdev_internal_class;
+extern const struct netdev_class netdev_tap_class;
#ifdef __cplusplus
}