summaryrefslogtreecommitdiff
path: root/datapath-windows/ovsext/Oid.c
diff options
context:
space:
mode:
authorAlin Serdean <aserdean@cloudbasesolutions.com>2014-10-09 17:46:54 +0000
committerBen Pfaff <blp@nicira.com>2014-10-09 15:47:10 -0700
commitfa0483234cc32b354cd37272b0082506d3522871 (patch)
tree0eb9efb51a4e3ff7de3fffd795fa44348d816242 /datapath-windows/ovsext/Oid.c
parentef47ed862c4f5c340a248db1759d75d968885fde (diff)
downloadopenvswitch-fa0483234cc32b354cd37272b0082506d3522871.tar.gz
datapath-windows: Rename hyper-v switch port and nic handlers
Functions such as OvsCreatePort are vague in regard to who creates it or when. It wasn't a problem thus far, since the vports were created, updated and destroyed from one place only (hyper-v switch part). But now, with the netlink implementation of the vport commands, a part of the vport is constructed by the netlink vport add, and the other part is constructed by the hyper-v switch nic and port handlers. This patch renames the hyper-v switch nic and port handlers, so that they are now prefixed by "Hv" instead of "Ovs", in order to clarify which of the functions are nic or port handlers. This will make more clear the usages from netlink vport commands side and from hyper-v switch side. It will also make more obvious which nic and port functions are helper functions. Signed-off-by: Samuel Ghinet <sghinet@cloudbasesolutions.com> Co-authored-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com> Acked-by: Ankur Sharma <ankursharma@vmware.com> Acked-by: Eitan Eliahu <eliahue@vmware.com> Acked-by: Nithin Raju <nithin@vmware.com> Tested-by: Nithin Raju <nithin@vmware.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'datapath-windows/ovsext/Oid.c')
-rw-r--r--datapath-windows/ovsext/Oid.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/datapath-windows/ovsext/Oid.c b/datapath-windows/ovsext/Oid.c
index a67534714..487739f5c 100644
--- a/datapath-windows/ovsext/Oid.c
+++ b/datapath-windows/ovsext/Oid.c
@@ -161,13 +161,13 @@ OvsProcessSetOidPort(POVS_SWITCH_CONTEXT switchObject,
switch(setInfo->Oid) {
case OID_SWITCH_PORT_CREATE:
- status = OvsCreatePort(switchObject, portParam);
+ status = HvCreatePort(switchObject, portParam);
break;
case OID_SWITCH_PORT_TEARDOWN:
- OvsTeardownPort(switchObject, portParam);
+ HvTeardownPort(switchObject, portParam);
break;
case OID_SWITCH_PORT_DELETE:
- OvsDeletePort(switchObject, portParam);
+ HvDeletePort(switchObject, portParam);
break;
default:
break;
@@ -193,19 +193,19 @@ OvsProcessSetOidNic(POVS_SWITCH_CONTEXT switchObject,
switch(setInfo->Oid) {
case OID_SWITCH_NIC_CREATE:
- status = OvsCreateNic(switchObject, nicParam);
+ status = HvCreateNic(switchObject, nicParam);
break;
case OID_SWITCH_NIC_CONNECT:
- OvsConnectNic(switchObject, nicParam);
+ HvConnectNic(switchObject, nicParam);
break;
case OID_SWITCH_NIC_UPDATED:
- OvsUpdateNic(switchObject, nicParam);
+ HvUpdateNic(switchObject, nicParam);
break;
case OID_SWITCH_NIC_DISCONNECT:
- OvsDisconnectNic(switchObject, nicParam);
+ HvDisconnectNic(switchObject, nicParam);
break;
case OID_SWITCH_NIC_DELETE:
- OvsDeleteNic(switchObject, nicParam);
+ HvDeleteNic(switchObject, nicParam);
break;
default:
break;
@@ -518,12 +518,12 @@ OvsOidRequestCompleteSetInfo(POVS_SWITCH_CONTEXT switchObject,
switch(setInfo->Oid) {
case OID_SWITCH_PORT_CREATE:
- OvsDeletePort(switchObject,
+ HvDeletePort(switchObject,
(PNDIS_SWITCH_PORT_PARAMETERS)origHeader);
break;
case OID_SWITCH_NIC_CREATE:
- OvsDeleteNic(switchObject,
+ HvDeleteNic(switchObject,
(PNDIS_SWITCH_NIC_PARAMETERS)origHeader);
break;