datapath-windows: NUL character should be left out during VPORT hash lookup
authorNithin Raju <nithin@vmware.com>
Sat, 27 Sep 2014 01:38:16 +0000 (18:38 -0700)
committerBen Pfaff <blp@nicira.com>
Mon, 29 Sep 2014 15:40:14 +0000 (08:40 -0700)
commitb09b30b3f9aa84fd1adb3205c07e998d744526c0
treeddb196756d62372397c3b8403ecb59d4061bef95
parentbdcca6157dfca92a9f24da3223b87688c8f30d04
datapath-windows: NUL character should be left out during VPORT hash lookup

While calculating the hash on a VPORT name, we don't include the NUL character.
We should be doing the same while doing lookup as well.

We set the required minimum length of the name to be 2 so that the string has
at least one valid character.

Signed-off-by: Nithin Raju <nithin@vmware.com>
Acked-by: Eitan Eliahu <eliahue@vmware.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
datapath-windows/ovsext/Datapath.c