git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7621d6a
)
app/testpmd: pack GRE header
author
Cyril Chemparathy
<cchemparathy@ezchip.com>
Mon, 22 Jun 2015 18:34:20 +0000
(11:34 -0700)
committer
Thomas Monjalon
<thomas.monjalon@6wind.com>
Wed, 24 Jun 2015 10:00:42 +0000
(12:00 +0200)
Not packing this causes -Wcast-align breakage on machines that are
strict on alignment. This patch fixes this bug.
Signed-off-by: Cyril Chemparathy <cchemparathy@ezchip.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
app/test-pmd/csumonly.c
patch
|
blob
|
history
diff --git
a/app/test-pmd/csumonly.c
b/app/test-pmd/csumonly.c
index
950ea82
..
4287940
100644
(file)
--- 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)