From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sclab-apps-2.localdomain (sc-fw1.tilera.com [12.218.212.162]) by dpdk.org (Postfix) with ESMTP id 3128FC8FE for ; Wed, 29 Apr 2015 18:16:07 +0200 (CEST) X-CheckPoint: {554103C6-0-A3D4DA0C-C0000002} Received: by sclab-apps-2.localdomain (Postfix, from userid 1318) id CEADA220728; Wed, 29 Apr 2015 09:15:54 -0700 (PDT) From: Cyril Chemparathy To: dev@dpdk.org Date: Wed, 29 Apr 2015 09:15:30 -0700 Message-Id: <1430324134-25654-7-git-send-email-cchemparathy@ezchip.com> X-Mailer: git-send-email 2.1.2 In-Reply-To: <1430324134-25654-1-git-send-email-cchemparathy@ezchip.com> References: <1430324134-25654-1-git-send-email-cchemparathy@ezchip.com> Subject: [dpdk-dev] [PATCH 06/10] app/test-pmd: pack simple_gre_hdr X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Apr 2015 16:16:16 -0000 Not packing this causes -Wcast-align breakage on machines that are strict on alignment. This patch fixes this bug. Signed-off-by: Cyril Chemparathy --- app/test-pmd/csumonly.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/test-pmd/csumonly.c b/app/test-pmd/csumonly.c index c180ff2..eadfd2b 100644 --- a/app/test-pmd/csumonly.c +++ b/app/test-pmd/csumonly.c @@ -108,7 +108,7 @@ struct testpmd_offload_info { struct simple_gre_hdr { uint16_t flags; uint16_t proto; -}; +} __attribute((packed)); static uint16_t get_psd_sum(void *l3_hdr, uint16_t ethertype, uint64_t ol_flags) -- 2.1.2