numam-dpdk/app
Pablo de Lara a085723ac8 app/test: fix build with overflowed EFD value
When RTE_EFD_VALUE_NUM_BITS is 32, there was a compilation issue
because of an overflow:

app/test/test_efd.c:157:55: error: overflow in expression;
result is 2147483647 with type 'int' [-Werror,-Winteger-overflow]
        data[0] = mrand48() & ((1 << RTE_EFD_VALUE_NUM_BITS) - 1);

This commit fixes the issue by using a setting a different
macro VALUE_BITMASK with a conditional

Fixes: 0e925aef27 ("app/test: add EFD functional and perf tests")

Reported-by: Yong Liu <yong.liu@intel.com>
Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
2017-01-30 17:17:15 +01:00
..
cmdline_test make python scripts python2/3 compliant 2017-01-04 21:13:44 +01:00
pdump drivers: make driver names consistent 2016-09-16 11:55:59 +02:00
proc_info app/procinfo: free xstats memory upon failure 2016-10-12 18:40:50 +02:00
test app/test: fix build with overflowed EFD value 2017-01-30 17:17:15 +01:00
test-acl acl: add AltiVec for ppc64 2016-09-09 17:56:14 +02:00
test-pipeline app/test-pipeline: add cuckoo hash 2016-10-12 22:09:46 +02:00
test-pmd app/testpmd: add offload capabilities query 2017-01-30 16:59:14 +01:00
Makefile app/pdump: add tool for packet capturing 2016-06-16 23:40:21 +02:00