summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDavid Marchand <david.marchand@redhat.com>2020-04-28 14:03:53 +0200
committerIan Stokes <ian.stokes@intel.com>2020-05-05 16:41:55 +0100
commit732cb79fb867b99b697da4cd305a3903a680454a (patch)
treec16177ec8a1123e98062c4dc5661477c3b1d386c /include
parent48b1c7642e2a046a255532b5f2322e70e352d790 (diff)
downloadopenvswitch-732cb79fb867b99b697da4cd305a3903a680454a.tar.gz
sparse: Fix typo in DPDK endian conversion macros.
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 <david.marchand@redhat.com> Signed-off-by: Ian Stokes <ian.stokes@intel.com>
Diffstat (limited to 'include')
-rw-r--r--include/sparse/rte_byteorder.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/sparse/rte_byteorder.h b/include/sparse/rte_byteorder.h
index d32b5e691..72cacac89 100644
--- a/include/sparse/rte_byteorder.h
+++ b/include/sparse/rte_byteorder.h
@@ -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>
@@ -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