path: root/doc/guides/nics
diff options
authorRasesh Mody <>2019-11-05 21:45:20 -0800
committerThomas Monjalon <>2019-11-06 11:55:24 +0100
commita3d1111a778e9b3093093db253c43b0e520e58d5 (patch)
treec1a5628c6c5b41080f5d49137158bfa0c283ea06 /doc/guides/nics
parentb2ca1e1caed22ff23613d3e038d0a82e9755282f (diff)
net/bnx2x: fix meson build
Use kernel headers for __le* types to avoid potential conflicts resulting in redefinition errors for some Linux build environments. Add check for FreeBSD execution environments. Without this fix, aarch64 builds can fail with error below: In file included from ../drivers/net/bnx2x/bnx2x.h:22, from ../drivers/net/bnx2x/bnx2x_ethdev.c:8: ../drivers/net/bnx2x/bnx2x_osal.h:27:17: error: conflicting types for ‘uint64_t’ #define __le64 uint64_t ^~~~~~~~ In file included from /usr/include/stdint.h:37, from /usr/lib/gcc/aarch64-linux-gnu/8/include/stdint.h:9, from ../lib/librte_eal/common/include/arch/arm/rte_byteorder.h:16, from ../drivers/net/bnx2x/bnx2x.h:17, from ../drivers/net/bnx2x/bnx2x_ethdev.c:8: /usr/include/aarch64-linux-gnu/bits/stdint-uintn.h:27:20: note: previous declaration of ‘uint64_t’ was here typedef __uint64_t uint64_t; ^~~~~~~~ There is also one minor change mixed in this commit: Some use of __FreeBSD__ are replaced by RTE_EXEC_ENV_FREEBSD. Fixes: 38dff79ba736 ("net/bnx2x: update HSI") Signed-off-by: Rasesh Mody <> Tested-by: Dharmik Thakkar <> Tested-by: Gavin Hu <>
Diffstat (limited to 'doc/guides/nics')
0 files changed, 0 insertions, 0 deletions