summaryrefslogtreecommitdiff
path: root/datapath-windows/ovsext/Switch.h
diff options
context:
space:
mode:
authorAnkur Sharma <ankursharma@vmware.com>2014-10-21 17:24:35 -0700
committerBen Pfaff <blp@nicira.com>2014-10-23 09:13:04 -0700
commit75752ef5e7e3ce70706074cae3ccf06c6871ed7e (patch)
treeda0af1dae73d7ad3605d57cdcff323fff7edf0fc /datapath-windows/ovsext/Switch.h
parenta9447331a639832a1c75b3f797757ed4139ec1d2 (diff)
downloadopenvswitch-75752ef5e7e3ce70706074cae3ccf06c6871ed7e.tar.gz
datapath-windows: pid-instance hash table data structure.
This patch introduces data structure for holding instances hashed by pid. Signed-off-by: Ankur Sharma <ankursharma@vmware.com> Acked-by: Sorin Vinturis <svinturis@cloudbasesolutions.com> cked-by: Nithin Raju <nithin@vmware.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'datapath-windows/ovsext/Switch.h')
-rw-r--r--datapath-windows/ovsext/Switch.h3
1 files changed, 3 insertions, 0 deletions
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