summaryrefslogtreecommitdiff
path: root/datapath-windows/misc
diff options
context:
space:
mode:
authorNithin Raju <nithin@vmware.com>2014-10-29 15:18:19 -0700
committerBen Pfaff <blp@nicira.com>2014-10-31 13:59:51 -0700
commita2ab813b439c00a90d6382840253493563d7ac7a (patch)
treeb586e0aaad5ba50b4e6692fd6c372cf4576be5c0 /datapath-windows/misc
parent30ffab6392a4f5b7436ed94e8eee7513ee1b217c (diff)
downloadopenvswitch-a2ab813b439c00a90d6382840253493563d7ac7a.tar.gz
datapath-windows: Increase the maximum size of port name.
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>
Diffstat (limited to 'datapath-windows/misc')
-rw-r--r--datapath-windows/misc/OVS.psm16
1 files changed, 3 insertions, 3 deletions
diff --git a/datapath-windows/misc/OVS.psm1 b/datapath-windows/misc/OVS.psm1
index b83b26314..cec41a63c 100644
--- a/datapath-windows/misc/OVS.psm1
+++ b/datapath-windows/misc/OVS.psm1
@@ -29,7 +29,7 @@ function Set-VMNetworkAdapterOVSPort
[Microsoft.HyperV.PowerShell.VMNetworkAdapter]$VMNetworkAdapter,
[parameter(Mandatory=$true)]
- [ValidateLength(1, 16)]
+ [ValidateLength(1, 48)]
[string]$OVSPortName
)
process
@@ -73,7 +73,7 @@ function Get-VMNetworkAdapterByOVSPort
(
[parameter(Mandatory=$true)]
- [ValidateLength(1, 16)]
+ [ValidateLength(1, 48)]
[string]$OVSPortName
)
process
@@ -94,7 +94,7 @@ function Get-VMByOVSPort
param
(
[parameter(Mandatory=$true)]
- [ValidateLength(1, 16)]
+ [ValidateLength(1, 48)]
[string]$OVSPortName
)
process