From 29a5b29f09b06205a4b5f2d3701cbd18a70ae226 Mon Sep 17 00:00:00 2001 From: Alin Serdean Date: Thu, 9 Oct 2014 17:46:55 +0000 Subject: datapath-windows: Define OVS_DPPORT_NUMBER_INVALID The fields externalVport and internalVport of the OVS_SWITCH_CONTEXT struct are currently defined as PVOID. However, all over the code they are used as POVS_VPORT_ENTRY. In order to improve clarity and reduce the need for useless casts to POVS_VPORT_ENTRY, this patch changes the type from PVOID to POVS_VPORT_ENTRY. This patch does not cleanup the code that already uses casts to POVS_VPORT_ENTRY. This cleanup can be done later on as well. 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 | 2 ++ 1 file changed, 2 insertions(+) (limited to 'datapath-windows/ovsext/Vport.h') diff --git a/datapath-windows/ovsext/Vport.h b/datapath-windows/ovsext/Vport.h index 0061b0fbb..2e96e9502 100644 --- a/datapath-windows/ovsext/Vport.h +++ b/datapath-windows/ovsext/Vport.h @@ -19,6 +19,8 @@ #include "Switch.h" +#define OVS_DPPORT_NUMBER_INVALID 0 + /* * A Vport, or Virtual Port, is a port on the OVS. It can be one of the * following types. Some of the Vports are "real" ports on the hyper-v switch, -- cgit v1.2.1