From: NĂ©lio Laranjeiro Date: Thu, 11 Jan 2018 09:15:58 +0000 (+0100) Subject: net: fix ESP header byte ordering definition X-Git-Tag: spdx-start~95 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=68bda436a35c0fcad1dcc86ea6559361f87f64d5;p=dpdk.git net: fix ESP header byte ordering definition ESP header is defined in the RFC2406 [1] as Big Endian fields it should use the corresponding types in DPDK as well. [1] https://tools.ietf.org/html/rfc2406 Fixes: d4b684f7197a ("net: add ESP header to generic flow steering") Cc: stable@dpdk.org Signed-off-by: Nelio Laranjeiro Acked-by: Olivier Matz --- diff --git a/lib/librte_net/rte_esp.h b/lib/librte_net/rte_esp.h index e228af092d..148c06e094 100644 --- a/lib/librte_net/rte_esp.h +++ b/lib/librte_net/rte_esp.h @@ -49,8 +49,8 @@ extern "C" { * ESP Header */ struct esp_hdr { - uint32_t spi; /**< Security Parameters Index */ - uint32_t seq; /**< packet sequence number */ + rte_be32_t spi; /**< Security Parameters Index */ + rte_be32_t seq; /**< packet sequence number */ } __attribute__((__packed__)); #ifdef __cplusplus