Acked-by: Eitan Eliahu <elia...@vmware.com>
-----Original Message----- From: dev [mailto:dev-boun...@openvswitch.org] On Behalf Of Ankur Sharma Sent: Tuesday, September 02, 2014 6:05 PM To: dev@openvswitch.org Subject: [ovs-dev] [PATCH 3/5] NetlinkProto.h: Minor fix for typos and new macro for padding. Added a new macro for calculating the number of bytes required for padding. Fixed a minor typo. --- datapath-windows/ovsext/Netlink/NetlinkProto.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/datapath-windows/ovsext/Netlink/NetlinkProto.h b/datapath-windows/ovsext/Netlink/NetlinkProto.h index 898cc84..2c438a6 100644 --- a/datapath-windows/ovsext/Netlink/NetlinkProto.h +++ b/datapath-windows/ovsext/Netlink/NetlinkProto.h @@ -39,6 +39,9 @@ /* Returns X rounded up to the nearest multiple of Y. */ #define ROUND_UP(X, Y) (DIV_ROUND_UP(X, Y) * (Y)) +/* Returns the least number that, when added to X, yields a multiple of +Y. */ #define PAD_SIZE(X, Y) (ROUND_UP(X, Y) - (X)) + /* Netlink message */ /* nlmsg_flags bits. */ @@ -92,7 +95,7 @@ typedef struct _GENL_MSG_HDR { UINT8 cmd; UINT8 version; UINT16 reserved; -} GENL_MSG_HDR, *PGENL_MDG_HDR; +} GENL_MSG_HDR, *PGENL_MSG_HDR; BUILD_ASSERT_DECL(sizeof(GENL_MSG_HDR) == 4); /* Netlink attributes */ -- 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=5Hiz9tfrket71f8QhIXlDRdzAU27UGUs39HEbv5hMck%3D%0A&s=1a8c60ce7cea544db179d5e751603c8d8406b5ccaea2dfeaaab925abe8152adc _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev