Skip to content

Commit

Permalink
Disabled Relaxed Ordering for FreeBSD
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitry Akhmedzhanov <dmitryak@mellanox.com>
  • Loading branch information
Dmitry Akhmedzhanov committed May 9, 2020
1 parent 1dbb125 commit 9209180
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -167,17 +167,19 @@ if [test $HAVE_SNIFFER = yes]; then
AC_DEFINE([HAVE_SNIFFER], [1], [Enable Sniffer Flow Specification])
fi

CPU_IS_RO_COMPLIANT=yes
# Actually this is check for being affected by a known issue
# with Intel CPUs:
# https://lore.kernel.org/patchwork/patch/820922/
intel_no_ro_devices="6f01 6f02 6f03 6f04 6f05 6f06 6f07 6f08 6f09 6f0a 6f0b 6f0c 6f0d 6f0e 2f01 2f02 2f03 2f04 2f05 2f06 2f07 2f08 2f09 2f0a 2f0b 2f0c 2f0d 2f0e"
for cpu_num in $intel_no_ro_devices; do
ro_nonsupported=$(lspci -nn | grep -i 8086:$cpu_num)
if [ test "$ro_nonsupported" ]; then
CPU_IS_RO_COMPLIANT=no
fi
done
if [test $IS_FREEBSD = no]; then
CPU_IS_RO_COMPLIANT=yes
# Actually this is check for being affected by a known issue
# with Intel CPUs:
# https://lore.kernel.org/patchwork/patch/820922/
intel_no_ro_devices="6f01 6f02 6f03 6f04 6f05 6f06 6f07 6f08 6f09 6f0a 6f0b 6f0c 6f0d 6f0e 2f01 2f02 2f03 2f04 2f05 2f06 2f07 2f08 2f09 2f0a 2f0b 2f0c 2f0d 2f0e"
for cpu_num in $intel_no_ro_devices; do
ro_nonsupported=$(lspci -nn | grep -i 8086:$cpu_num)
if [ test "$ro_nonsupported" ]; then
CPU_IS_RO_COMPLIANT=no
fi
done
fi

AC_TRY_LINK([
#include <infiniband/verbs.h>],
Expand Down

0 comments on commit 9209180

Please sign in to comment.