From 75752ef5e7e3ce70706074cae3ccf06c6871ed7e Mon Sep 17 00:00:00 2001 From: Ankur Sharma Date: Tue, 21 Oct 2014 17:24:35 -0700 Subject: datapath-windows: pid-instance hash table data structure. This patch introduces data structure for holding instances hashed by pid. Signed-off-by: Ankur Sharma Acked-by: Sorin Vinturis cked-by: Nithin Raju Signed-off-by: Ben Pfaff --- datapath-windows/ovsext/Switch.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'datapath-windows/ovsext/Switch.h') diff --git a/datapath-windows/ovsext/Switch.h b/datapath-windows/ovsext/Switch.h index ac708b7ff..7fdca5f3a 100644 --- a/datapath-windows/ovsext/Switch.h +++ b/datapath-windows/ovsext/Switch.h @@ -24,8 +24,10 @@ #include "NetProto.h" #include "BufferMgmt.h" #define OVS_MAX_VPORT_ARRAY_SIZE 1024 +#define OVS_MAX_PID_ARRAY_SIZE 1024 #define OVS_VPORT_MASK (OVS_MAX_VPORT_ARRAY_SIZE - 1) +#define OVS_PID_MASK (OVS_MAX_PID_ARRAY_SIZE - 1) #define OVS_INTERNAL_VPORT_DEFAULT_INDEX 0 @@ -107,6 +109,7 @@ typedef struct _OVS_SWITCH_CONTEXT PLIST_ENTRY ovsPortNameHashArray; // based on ovsName PLIST_ENTRY portIdHashArray; // based on portId PLIST_ENTRY portNoHashArray; // based on ovs port number + PLIST_ENTRY pidHashArray; // based on packet pids UINT32 numPhysicalNics; UINT32 numVports; // include validation port -- cgit v1.2.1