From e446bc731e9f678e7aa6381eb76bdf6cf48c0522 Mon Sep 17 00:00:00 2001 From: Cyril Chemparathy Date: Mon, 22 Jun 2015 11:34:20 -0700 Subject: [PATCH] app/testpmd: pack GRE header Not packing this causes -Wcast-align breakage on machines that are strict on alignment. This patch fixes this bug. Signed-off-by: Cyril Chemparathy Acked-by: Olivier Matz --- 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 950ea82a1d..4287940a17 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.20.1