From 1eda776120c4884d55f6ea75313bc49f52a41f1c Mon Sep 17 00:00:00 2001 From: Alin Serdean Date: Thu, 9 Oct 2014 17:46:56 +0000 Subject: datapath-windows: Rename OvsGetVportNo into OvsComputeVportNo and make public OvsGetVportNo computes a new port number. Therefore, OvsComputeVportNo is a more clear name for what the function does. Reading OvsGetVportNo may give the false impression that it returns the port number of an existing vport. Also, since the responsibility of assigning dp port numbers no longer falls on the hyper-v switch port handlers side, but on the netlink vport commands side (vport add), we will need to use this compute port number function from outside Vport.c. Therefore, this function declaration is moved from Vport.c to Vport.h, and becomes public. Signed-off-by: Samuel Ghinet Co-authored-by: Alin Gabriel Serdean Acked-by: Ankur Sharma Acked-by: Eitan Eliahu Acked-by: Nithin Raju Tested-by: Nithin Raju Signed-off-by: Ben Pfaff --- datapath-windows/ovsext/Vport.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'datapath-windows/ovsext/Vport.h') diff --git a/datapath-windows/ovsext/Vport.h b/datapath-windows/ovsext/Vport.h index 2e96e9502..86b25751c 100644 --- a/datapath-windows/ovsext/Vport.h +++ b/datapath-windows/ovsext/Vport.h @@ -135,6 +135,11 @@ VOID HvDeleteNic(POVS_SWITCH_CONTEXT switchContext, VOID HvDisconnectNic(POVS_SWITCH_CONTEXT switchContext, PNDIS_SWITCH_NIC_PARAMETERS nicParam); +UINT32 OvsComputeVportNo(POVS_SWITCH_CONTEXT switchContext, + UINT32 nicIndex, + OVS_VPORT_TYPE ovsType, + BOOLEAN isExternal); + static __inline BOOLEAN OvsIsTunnelVportType(OVS_VPORT_TYPE ovsType) { -- cgit v1.2.1