summaryrefslogtreecommitdiff
path: root/datapath-windows/misc
Commit message (Collapse)AuthorAgeFilesLines
* datapath-windows: Add Win10Analyze targetAlin Gabriel Serdean2019-05-091-0/+86
| | | | | | | | | | | | | | | | This patch adds a new target called `Win10Analyze` to the driver solution. It enables us to trigger static analysis over the Win10 target. Since the location of the ruleset of drivers is somewhat random starting from 1803: https://www.osr.com/blog/2018/05/21/wdk-1803-ca/ Commit the ruleset inside our repository. This is the same ruleset used for 8,8.1 and 10. Signed-off-by: Alin Gabriel Serdean <aserdean@ovn.org> Acked-by: Anand Kumar <kumaranand@vmware.com>
* datapath-windows: Fix warning from the powershell moduleAlin Serdean2015-05-191-3/+5
| | | | | | | | | | | This patch fixes the warning when datapath-windows/misc/OVS.psm1 is imported. Signed-off-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com> Reported-by: Hemanth Kumar Mantri <mantri@nutanix.com> Reported-at: https://github.com/openvswitch/ovs-issues/issues/69 Acked-by: Eitan Eliahu <eliahue@vmware.com> Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
* datapath-windows: Add functionality to return OVSPortName given a VMAlin Serdean2014-11-121-2/+30
| | | | | | | | | | | | | | | | | | | | | | | | This commit adds functionality to return the ElementName of all the VNIC of a given virtual machine name. The function returns all the allocated ports including the ones which the OVS port name was not set. The default OVS port name that is set is the following: "ElementName : Dynamic Ethernet Switch Port". Example of usage: Import-Module OVS.psm1 Get-VMNetworkAdapterWithOvsPort test_ubuntu_1 $a = Get-VMNetworkAdapterWithOvsPort test_2_1 $a | findstr ElementName Requested-by: Nithin Raju <nithin@vmware.com> Reported-at: https://github.com/openvswitch/ovs-issues/issues/51 Signed-off-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com> Tested-by: Nithin Raju <nithin@vmware.com> Acked-by: Nithin Raju <nithin@vmware.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
* datapath-windows: Add WMI to set Hyper-V port "friendly name" from NOVA.Eitan Eliahu2014-11-051-0/+26
| | | | | | | | | | | | | | | | Added a function Set-VMNetworkAdapterOVSPortDirect() to be called from NOVA driver to set a name on the port of the first VNIC for the specified VM. Usage example: Set-VMNetworkAdapterOVSPortDirect -OVSPortName ovs-port-5 -VMName NoOS To confirm that the name was set: Get-VMNetworkAdapterByOVSPort -OVSPortName ovs-port-5 Signed-off-by: Eitan Eliahu <eliahue@vmware.com> Acked-by: Ankur Sharma <ankursharma@vmware.com> Acked-by: Nithin Raju <nithin@vmware.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
* datapath-windows: Increase the maximum size of port name.Nithin Raju2014-10-311-3/+3
| | | | | | | | | | | | | | | | | | | | In userspace, port name sizes are restricted to IFNAMSIZ which is defined to IF_NAME_SIZE in: C:\Program Files (x86)\Windows Kits\8.1\Include\shared\netioapi.h In the kernel, since IFNAMSIZ was not available, we previously defined a value of 16 for the kernel. This is restrictive for Openstack integration where we use UUID as the name. In this patch, we make the kernel code also use the same value as the userspace. Also updated is the OVS.psm1 powershell script which now allows friendly names to be upto 48 bytes. Signed-off-by: Nithin Raju <nithin@vmware.com> Acked-by: Eitan Eliahu <eliahue@vmware.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
* Update the WMI Script handling Hyper-V friendly port namesLucian Petrut2014-10-081-5/+83
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch ensures that the friendly port name has no more than 16 characters and also if it is not in use. The method which checks the WMI jobs has been updated in order to provide relevant error codes/descriptions. Methods retrieving the according VM and VM network adapter mapped to an OVS port have been added as well. They are called: Get-VMNetworkAdapterByOVSPort Get-VMByOVSPort Example of usage: 2 import-module .\OVS.psm1 3 $vnic = Get-VMNetworkAdapter test_2_1 4 $vnic[0] | Set-VMNetworkAdapterOVSPort -OVSPortName ovs-port-1 5 $vnic[1] | Set-VMNetworkAdapterOVSPort -OVSPortName ovs-port-1 6 $vnic[0] | Set-VMNetworkAdapterOVSPort -OVSPortName ovs-port-2 7 $vnic[1] | Set-VMNetworkAdapterOVSPort -OVSPortName ovs-port-1 8 Get-VMNetworkAdapterByOVSPort ovs-port-1 9 Get-VMByOVSPort ovs-port-2 Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com> Tested-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com> Acked-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
* datapath-windows: Add WMI Script that updates Hyper-V friendly port names.Alin Serdean2014-09-291-0/+76
| | | | | | | | | | | | | | | | | | | | | | | | The following script leverage's the advantages of WMI infrastructure offered in Hyper-V. This scripts allows the user to change the Msvm_EthernetPortAllocationSettingData property of a VM network adapter connected to a Hyper-V Virtual Switch. Usage: import-module .\OVS.psm1 $vnic = Get-VMNetworkAdapter VM1 Connect-VMNetworkAdapter -VMNetworkAdapter $vnic -SwitchName external $vnic | Set-VMNetworkAdapterOVSPort -OVSPortName ovs-port-1 VM1 - is a VM on top of a Hyper-V external - is a Hyper-V Virtual Switch Signed-off-by: Alessandro Pilotti <apilotti@cloudbasesolutions.com> Signed-off-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com> Tested-by: Nithin Raju <nithin@vmware.com> Acked-by: Nithin Raju <nithin@vmware.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
* datapath-windows: Kernel module for HyperV.Saurabh Shah2014-07-282-0/+5
The kernel switch extension has support for bridged back forwarding & tunneling over VXLAN. There is no Netlink integration as it is still being worked out. Co-Authored-By: Ankur Sharma <ankursharma@vmware.com> Signed-off-by: Ankur Sharma <ankursharma@vmware.com> Co-Authored-By: Eitan Eliahu <eliahue@vmware.com> Signed-off-by: Eitan Eliahu <eliahue@vmware.com> Co-Authored-By: Guolin Yang <gyang@vmware.com> Signed-off-by: Guolin Yang <gyang@vmware.com> Co-Authored-By: Linda Sun <lsun@vmware.com> Signed-off-by: Linda Sun <lsun@vmware.com> Co-Authored-By: Nithin Raju <nithin@vmware.com> Signed-off-by: Nithin Raju <nithin@vmware.com> Signed-off-by: Saurabh Shah <ssaurabh@vmware.com> Signed-off-by: Ben Pfaff <blp@nicira.com>