app/testpmd: pack GRE header
[dpdk.git] / app / test-pmd / csumonly.c
index c180ff2..4287940 100644 (file)
@@ -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)
@@ -706,4 +706,3 @@ struct fwd_engine csum_fwd_engine = {
        .port_fwd_end   = NULL,
        .packet_fwd     = pkt_burst_checksum_forward,
 };
-