Acked-by: Eitan Eliahu <elia...@vmware.com>
-----Original Message----- From: dev [mailto:dev-boun...@openvswitch.org] On Behalf Of Ankur Sharma Sent: Wednesday, September 24, 2014 12:16 AM To: dev@openvswitch.org Subject: [ovs-dev] [PATCH v1 01/10] datapath-windows: move OVS_MESSAGE to Netlink.h Moved the structure OVS_MESSAGE to Netlink.h. This change is done for following reasons. a. Patch 2 in this series provides a generic API in Netlink.c for creating netlink message. That API needs OVS_MESSAGE. Including Datapath.h in Netlink.c/h gives compilation error. b. OVS_MESSAGE defines netlink messages hence moving it to Netlink.h looked fine to me. --- datapath-windows/ovsext/Datapath.h | 10 ---------- datapath-windows/ovsext/Netlink/Netlink.h | 11 +++++++++++ 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/datapath-windows/ovsext/Datapath.h b/datapath-windows/ovsext/Datapath.h index 4e6c9b1..f77c1e2 100644 --- a/datapath-windows/ovsext/Datapath.h +++ b/datapath-windows/ovsext/Datapath.h @@ -28,16 +28,6 @@ #ifndef __DATAPATH_H_ #define __DATAPATH_H_ 1 -/* - * Structure of any message passed between userspace and kernel. - */ -typedef struct _OVS_MESSAGE { - NL_MSG_HDR nlMsg; - GENL_MSG_HDR genlMsg; - OVS_HDR ovsHdr; - /* Variable length nl_attrs follow. */ -} OVS_MESSAGE, *POVS_MESSAGE; - typedef struct _OVS_DEVICE_EXTENSION { INT numberOpenInstance; INT pidCount; diff --git a/datapath-windows/ovsext/Netlink/Netlink.h b/datapath-windows/ovsext/Netlink/Netlink.h index 6ecbdc5..b036723 100644 --- a/datapath-windows/ovsext/Netlink/Netlink.h +++ b/datapath-windows/ovsext/Netlink/Netlink.h @@ -20,6 +20,17 @@ #include "Types.h" #include "NetlinkProto.h" #include "NetlinkBuf.h" +#include "..\..\include\OvsDpInterface.h" + +/* + * Structure of any message passed between userspace and kernel. + */ +typedef struct _OVS_MESSAGE { + NL_MSG_HDR nlMsg; + GENL_MSG_HDR genlMsg; + OVS_HDR ovsHdr; + /* Variable length nl_attrs follow. */ } OVS_MESSAGE, +*POVS_MESSAGE; /* Netlink attribute types. */ typedef enum -- 1.9.1 _______________________________________________ dev mailing list dev@openvswitch.org https://urldefense.proofpoint.com/v1/url?u=http://openvswitch.org/mailman/listinfo/dev&k=oIvRg1%2BdGAgOoM1BIlLLqw%3D%3D%0A&r=yTvML8OxA42Jb6ViHe7fUXbvPVOYDPVq87w43doxtlY%3D%0A&m=EeLDlRj338JCRoloQ2ixJU0Rcx81oWN8eJ6np%2B3Vr34%3D%0A&s=2f67d87035c729abdeb8845cbd4ca22b32453d38291fe5807931e885f5d904a7 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev