From d9818dd68c162079f3ddb5443a78d0d91d55d0fe Mon Sep 17 00:00:00 2001 From: David Johnson Date: Fri, 14 Dec 2018 14:53:41 -0500 Subject: Fixes for buliding for 32bit targets: * u32/u64/uword mismatches * pointer-to-int fixes * printf formatting issues * issues with incorrect "ULL" and related suffixes * structure alignment and padding issues Change-Id: I70b989007758755fe8211c074f651150680f60b4 Signed-off-by: David Johnson --- src/plugins/dpdk/ipsec/ipsec.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/plugins/dpdk/ipsec') diff --git a/src/plugins/dpdk/ipsec/ipsec.h b/src/plugins/dpdk/ipsec/ipsec.h index 7d7ba564544..054fe9b0223 100644 --- a/src/plugins/dpdk/ipsec/ipsec.h +++ b/src/plugins/dpdk/ipsec/ipsec.h @@ -74,6 +74,7 @@ typedef struct typedef struct { + CLIB_ALIGN_MARK (pad, 8); /* align up to 8 bytes for 32bit builds */ char *name; enum rte_crypto_sym_xform_type type; u32 alg; @@ -83,7 +84,7 @@ typedef struct u8 boundary; u8 disabled; u8 resources; -} crypto_alg_t __attribute__ ((aligned (8))); +} crypto_alg_t; typedef struct { @@ -128,6 +129,7 @@ typedef struct typedef struct { + CLIB_ALIGN_MARK (pad, 16); /* align up to 16 bytes for 32bit builds */ struct rte_cryptodev_sym_session *session; u64 dev_mask; } crypto_session_by_drv_t; -- cgit 1.2.3-korg