datapath-windows: Changes to InitOvsVportCommon()
authorNithin Raju <nithin@vmware.com>
Wed, 19 Nov 2014 01:42:46 +0000 (17:42 -0800)
committerGurucharan Shetty <gshetty@nicira.com>
Thu, 20 Nov 2014 15:13:25 +0000 (07:13 -0800)
commit827e07be2e969354267f8383cc708b1edbe4dd49
tree5e8aef322101cce2fc526856c5a15309660000a7
parentc22f284b4b8d714bf54305d13a5a26eba12e4afe
datapath-windows: Changes to InitOvsVportCommon()

If a Hyper-V port (for which there exists an OVS port), gets deleted and
re-added, we'll call into InitOvsVportCommon() for the port to insert
the port into the 'portIdHashArray' as well as do a few other
initialization in the switch ocntext.

We should not be incrementing 'numHvPorts' at this point since this
vport has been counted before when it was first allocated. To account
for this, we add a new parameter to InitOvsVportCommon(). The arguments
passed by some of the callers are not 100% correct, and will be fixed in
future commit in the series.

Signed-off-by: Nithin Raju <nithin@vmware.com>
Acked-by: Ankur Sharma <ankursharma@vmware.com>
Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
datapath-windows/ovsext/Vport.c
datapath-windows/ovsext/Vport.h