Skip to content

Commit

Permalink
sparse: Fix typo in DPDK endian conversion macros.
Browse files Browse the repository at this point in the history
This header is duplicated from the DPDK generic header.
Fix typo identified in DPDK [1].

While at it, RTE_EXEC_ENV_BSDAPP has been replaced with
RTE_EXEC_ENV_FREEBSD in 19.05 [2].

1: https://git.dpdk.org/dpdk/commit/?id=a3e283ed904c
2: https://git.dpdk.org/dpdk/commit/?id=5fbc1d498f54

Signed-off-by: David Marchand <[email protected]>
Signed-off-by: Ian Stokes <[email protected]>
  • Loading branch information
david-marchand authored and istokes committed May 5, 2020
1 parent 48b1c76 commit 732cb79
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/sparse/rte_byteorder.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@

#include "openvswitch/types.h"
#include <stdint.h>
#ifdef RTE_EXEC_ENV_BSDAPP
#ifdef RTE_EXEC_ENV_FREEBSD
#include <sys/endian.h>
#else
#include <endian.h>
Expand Down Expand Up @@ -127,9 +127,9 @@
#define RTE_BE16(v) (OVS_FORCE rte_be16_t)(RTE_STATIC_BSWAP16(v))
#define RTE_BE32(v) (OVS_FORCE rte_be32_t)(RTE_STATIC_BSWAP32(v))
#define RTE_BE64(v) (OVS_FORCE rte_be64_t)(RTE_STATIC_BSWAP64(v))
#define RTE_LE16(v) (OVS_FORCE rte_be16_t)(v)
#define RTE_LE32(v) (OVS_FORCE rte_be32_t)(v)
#define RTE_LE64(v) (OVS_FORCE rte_be64_t)(v)
#define RTE_LE16(v) (OVS_FORCE rte_le16_t)(v)
#define RTE_LE32(v) (OVS_FORCE rte_le32_t)(v)
#define RTE_LE64(v) (OVS_FORCE rte_le64_t)(v)
#else
#error Unsupported endianness.
#endif
Expand Down

0 comments on commit 732cb79

Please sign in to comment.