[v4,14/16] app/test: pack structures when building with MSVC
Checks
Commit Message
Add __rte_msvc_pack to all __rte_packed structs to cause packing
when building with MSVC.
Signed-off-by: Tyler Retzlaff <roretzla@linux.microsoft.com>
---
app/test/test_efd.c | 1 +
app/test/test_hash.c | 1 +
app/test/test_member.c | 1 +
3 files changed, 3 insertions(+)
@@ -33,6 +33,7 @@
static unsigned int test_socket_id;
/* 5-tuple key type */
+__rte_msvc_pack
struct flow_key {
uint32_t ip_src;
uint32_t ip_dst;
@@ -79,6 +79,7 @@
* Should be packed to avoid holes with potentially
* undefined content in the middle.
*/
+__rte_msvc_pack
struct flow_key {
uint32_t ip_src;
uint32_t ip_dst;
@@ -32,6 +32,7 @@
struct rte_member_setsum *setsum_sketch;
/* 5-tuple key type */
+__rte_msvc_pack
struct flow_key {
uint32_t ip_src;
uint32_t ip_dst;