diff options
author | Ankur Sharma <ankursharma@vmware.com> | 2014-10-17 11:12:32 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2014-10-17 13:59:09 -0700 |
commit | 6cac056e1d3773ec38e5667da8fc677024248712 (patch) | |
tree | d5e73d87c2a486990cd797c46c5145e376879de9 /lib/netdev-windows.c | |
parent | ae1fd3860e26a42aafa621ecdca8d2e55ff4cc00 (diff) | |
download | openvswitch-6cac056e1d3773ec38e5667da8fc677024248712.tar.gz |
datapath-windows: netdev-windows fixes for vswitchd bringup.
Added the handlers for update_flags and set_etheraddr.
These handlers were needed for vswitchd bringup on windows
platform.
Signed-off-by: Ankur Sharma <ankursharma@vmware.com>
Acked-by: Nithin Raju <nithin@vmware.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'lib/netdev-windows.c')
-rw-r--r-- | lib/netdev-windows.c | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/lib/netdev-windows.c b/lib/netdev-windows.c index 02d37a7c9..f9f96ecf1 100644 --- a/lib/netdev-windows.c +++ b/lib/netdev-windows.c @@ -326,7 +326,33 @@ netdev_windows_get_mtu(const struct netdev *netdev_, int *mtup) } return 0; } - + +/* This functionality is not really required by the datapath. + * But vswitchd bringup expects this to be implemented. */ +static int +netdev_windows_set_etheraddr(const struct netdev *netdev_, uint8_t mac[6]) +{ + return 0; +} + +/* We do not really have to update anything in kernel. */ +static int +netdev_win_set_flag(const char *name, uint32_t flags) +{ + return 0; +} + +/* This functionality is not really required by the datapath. + * But vswitchd bringup expects this to be implemented. */ +static int +netdev_win_update_flags_system(struct netdev *netdev_, + enum netdev_flags off, + enum netdev_flags on, + enum netdev_flags *old_flagsp) +{ + return 0; +} + static int netdev_windows_internal_construct(struct netdev *netdev_) @@ -343,6 +369,8 @@ netdev_windows_internal_construct(struct netdev *netdev_) .destruct = netdev_windows_destruct, \ .dealloc = netdev_windows_dealloc, \ .get_etheraddr = netdev_windows_get_etheraddr, \ + .set_etheraddr = netdev_windows_set_etheraddr, \ + .update_flags = netdev_win_update_flags_system, \ } const struct netdev_class netdev_windows_class = |