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: d4b684f719
("net: add ESP header to generic flow steering")
Cc: stable@dpdk.org
Signed-off-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
This commit is contained in:
parent
3da37f6821
commit
68bda436a3
@ -49,8 +49,8 @@ extern "C" {
|
|||||||
* ESP Header
|
* ESP Header
|
||||||
*/
|
*/
|
||||||
struct esp_hdr {
|
struct esp_hdr {
|
||||||
uint32_t spi; /**< Security Parameters Index */
|
rte_be32_t spi; /**< Security Parameters Index */
|
||||||
uint32_t seq; /**< packet sequence number */
|
rte_be32_t seq; /**< packet sequence number */
|
||||||
} __attribute__((__packed__));
|
} __attribute__((__packed__));
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
Loading…
Reference in New Issue
Block a user